You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2012/02/29 22:21:23 UTC

svn commit: r1295278 - /incubator/vcl/trunk/web/.ht-inc/schedules.php

Author: jfthomps
Date: Wed Feb 29 21:21:22 2012
New Revision: 1295278

URL: http://svn.apache.org/viewvc?rev=1295278&view=rev
Log:
VCL-556
edit schedule groups code not doing permissions correctly

updated submitScheduleGroups - made calls to getUserResources match what is in viewSchedules

Modified:
    incubator/vcl/trunk/web/.ht-inc/schedules.php

Modified: incubator/vcl/trunk/web/.ht-inc/schedules.php
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/schedules.php?rev=1295278&r1=1295277&r2=1295278&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/schedules.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/schedules.php Wed Feb 29 21:21:22 2012
@@ -527,10 +527,10 @@ function submitScheduleGroups() {
 	$schedules = getSchedules();
 
 	# build an array of memberships currently in the db
-	$tmp = getUserResources(array("groupAdmin"), array("administer"), 1);
+	$tmp = getUserResources(array("scheduleAdmin"), array("manageGroup"), 1);
 	$schedulegroupsIDs = array_keys($tmp["schedule"]);  // ids of groups that user can administer
 	$resources = getUserResources(array("scheduleAdmin"), 
-	                              array("administer"), 0, 0);
+	                              array("manageGroup"), 0, 0);
 	$userScheduleIDs = array_keys($resources["schedule"]); // ids of schedules that user can administer
 	$schedulemembership = getResourceGroupMemberships("schedule");
 	$baseschedulegroups = $schedulemembership["schedule"]; // all schedule group memberships