[#2523] No way to define a sesha admin
Summary No way to define a sesha admin
Queue Sesha
Type Bug
State Resolved
Priority 1. Low
Owners
Requester rbreiddal (at) presinet (dot) com
Created 08/26/2005 (1231 days ago)
Due
Updated 10/25/2005 (1171 days ago)
Assigned
Resolved 10/25/2005 (1171 days ago)
Attachments sesha-administration.patch Download
Milestone
Patch No

History
10/25/2005 Jan Schneider Comment #3
State ⇒ Resolved
Reply to this comment
Committed, thanks.
08/26/2005   New Attachment: sesha-administration.patch Download
 
08/26/2005 Jan Schneider Comment #2
State ⇒
Reply to this comment
Please upload the patch as an attachment.
08/26/2005 rbreiddal (at) presinet (dot) com Comment #1
Queue ⇒ Sesha
State ⇒ Unconfirmed
Type ⇒ Bug
Summary ⇒ No way to define a sesha admin
Priority ⇒ 1. Low
Reply to this comment
There doesn't seem to be any way for a non-Horde-super-user to gain 
administrative priveledge to Sesha.

This might be what it needs:

Index: api.php
===================================================================
RCS file: /repository/sesha/lib/api.php,v
retrieving revision 1.11
diff -u -b -r1.11 api.php
--- api.php     26 Aug 2005 12:50:22 -0000      1.11
+++ api.php     26 Aug 2005 18:08:38 -0000
@@ -13,6 +13,10 @@
   * @package Sesha
   */

+$_services['perms'] = array(
+    'args' => array(),
+    'type' => 'stringArray');
+
  $_services['listClients'] = array(
      'args' => array(),
      'type' => '{urn:horde}hash');
@@ -38,6 +42,15 @@
  );


+function _sesha_perms()
+{
+    $perms = array();
+    $perms['tree']['sesha']['admin'] = array();
+    $perms['title']['sesha:admin'] = _("Administration");
+
+    return $perms;
+}
+
  function _sesha_listClients()
  {
      require_once dirname(__FILE__) . '/base.php';