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 |
Kronolith 4.2.2
commit a8e7e1b3a54d1ddd55f0f787dd3db0571e2e7589
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Fri Aug 29 12:45:55 2014 -0400
Bug: 13049Honor 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
commit ccbd210f83d049ec71d8b83f893ba3ab8bed39ce
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Fri Aug 29 12:45:55 2014 -0400
Bug: 13049Honor 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
right assigned. They see the "+" sign and can type in data for a new
resource, but can not save/create the resource.
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;
}
State ⇒ Resolved
commit afb578fe149a9a67f8dfdae6156968f92386f6ca
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date: Wed Apr 2 14:56:32 2014 -0400
Request: 13049Add 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
State ⇒ Accepted
Priority ⇒ 1. Low
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ only the admin user can create ressources
Type ⇒ Bug
Priority ⇒ 2. Medium
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.