6.0.0-beta1
7/13/25

[#13049] only the admin user can create ressources
Summary only the admin user can create ressources
Queue Kronolith
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester michael (at) bigmichi1 (dot) de
Created 03/14/2014 (4139 days ago)
Due
Updated 08/29/2014 (3971 days ago)
Assigned
Resolved 04/02/2014 (4120 days ago)
Milestone
Patch No

History
08/29/2014 04:51:29 PM Michael Rubinsky Comment #10 Reply to this comment
Really resolved, this time.

Kronolith 4.2.2
08/29/2014 04:48:12 PM Git Commit Comment #9 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit a8e7e1b3a54d1ddd55f0f787dd3db0571e2e7589
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Fri Aug 29 12:45:55 2014 -0400

     Bug: 13049 Honor resource_management perms.

  kronolith/lib/Ajax/Application/Handler.php |    3 ++-
  kronolith/lib/Resource/Base.php            |    3 ++-
  2 files changed, 4 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/a8e7e1b3a54d1ddd55f0f787dd3db0571e2e7589
08/29/2014 04:46:47 PM Git Commit Comment #8 Reply to this comment
Changes have been made in Git (master):

commit ccbd210f83d049ec71d8b83f893ba3ab8bed39ce
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Fri Aug 29 12:45:55 2014 -0400

     Bug: 13049 Honor resource_management perms.

  kronolith/lib/Ajax/Application/Handler.php |    3 ++-
  kronolith/lib/Resource/Base.php            |    3 ++-
  2 files changed, 4 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/ccbd210f83d049ec71d8b83f893ba3ab8bed39ce
08/22/2014 08:12:27 AM lst_hoe02 (at) kwsoft (dot) de Comment #7 Reply to this comment
The problem is with non-admin users which have the resource management 
right assigned. They see the "+" sign and can type in data for a new 
resource, but can not save/create the resource.
08/02/2014 08:12:33 AM jasper (dot) olbrich (at) students (dot) uni-marburg (dot) de Comment #6 Reply to this comment
Did you try as non-admin with resource mgmt rights?
08/01/2014 10:22:38 PM Jan Schneider Comment #5 Reply to this comment
Cannot reproduce. I don't see the icon as non-admin user.
07/21/2014 09:20:08 AM Jasper (dot) Olbrich (at) students (dot) uni-marburg (dot) de Comment #4 Reply to this comment
Still buggy in current git master, non-admin users see the "+" Icon, 
but get "You are not allowed to create new resources."

This patch should fix it:

diff --git a/kronolith/lib/Ajax/Application/Handler.php 
b/kronolith/lib/Ajax/Application/Handler.php
index 76fe5da..a400b79 100644
--- a/kronolith/lib/Ajax/Application/Handler.php
+++ b/kronolith/lib/Ajax/Application/Handler.php
@@ -1046,7 +1046,7 @@ class Kronolith_Ajax_Application_Handler extends 
Horde_Core_Ajax_Application_Han
              if (!$calendar_id) {
                  // New resource
                  // @TODO: Groups.
-                if (!$GLOBALS['registry']->isAdmin()) {
+                if (!$GLOBALS['registry']->isAdmin() && 
!$GLOBALS['injector']->getInstance('Horde_Core_Perms')->hasAppPermission('resource_management')) 
{
                      $GLOBALS['notification']->push(_("You are not 
allowed to create new resources."), 'horde.error');
                      return $result;
                  }


04/02/2014 06:58:47 PM Michael Rubinsky Comment #3
State ⇒ Resolved
Reply to this comment
Kronolith 4.2
04/02/2014 06:58:28 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit afb578fe149a9a67f8dfdae6156968f92386f6ca
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Apr 2 14:56:32 2014 -0400

     Request: 13049 Add permission for resource_management.

  kronolith/lib/Application.php                |   98 +++++++++++++------------
  kronolith/lib/Driver/Resource/Sql.php        |   13 +++-
  kronolith/lib/View/Sidebar.php               |    2 +-
  kronolith/templates/dynamic/sidebar.html.php |    4 +-
  4 files changed, 65 insertions(+), 52 deletions(-)

http://github.com/horde/horde/commit/afb578fe149a9a67f8dfdae6156968f92386f6ca
03/31/2014 02:00:37 AM Michael Rubinsky Assigned to Michael Rubinsky
 
03/17/2014 12:31:01 PM Jan Schneider Version ⇒ Git master
 
03/17/2014 12:30:45 PM Jan Schneider Type ⇒ Enhancement
State ⇒ Accepted
Priority ⇒ 1. Low
 
03/14/2014 06:35:38 AM michael (at) bigmichi1 (dot) de Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ only the admin user can create ressources
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
i want to give a user (secretary) the permission to create ressources 
but i didn't find a way to achieve that without making this user to 
the admin of horde. permission dialog doesn't show a permission that 
can be selected and/or enabled for this task.

Saved Queries