Hi Seth. I'm just back from a week off the grid, and trying to get caught up on a mountain of electronic stuff. Here's my quick response. Please let me know if more explanation is required.
If you want to allow a user to be able to edit views, you need to grant them edit permission on GangliaAcl::ALL_VIEWS. You can allow users to edit: - All views. $acl->allow( 'username', GangliaAcl::ALL_VIEWS, GangliaAcl::EDIT ); - Optional graphs for all clusters. $acl->allow( 'username', GangliaAcl::ALL_CLUSTERS, GangliaAcl::EDIT ); - Optional graphs for an individual cluster. $acl->allow( 'username', 'clustername', GangliaAcl::EDIT ); Editing views is not per-cluster permission because views can contain graphs from many clusters. Currently, we only support a single 'edit' permission for all views. (A user can either edit all views, or can edit none.) You can't selectively grant edit permission on a single view. That restriction could possible be lifted in the future if there is demand for it. Hope that helps. As I said, please let me know if further explanation is required. alex On Jun 7, 2011, at 8:20 PM, Vladimir Vuksan wrote: > Sounds like a bug. We'll take a look. If you end up fixing it feel free to > send us a patch. > > Thanks, > Vladimir > > On Tue, 7 Jun 2011, Seth Graham wrote: > >> >> I'm having some issues getting the user roles working as expected. >> >> The wiki instructs something like: >> >> $acl->addRole( $username, GangliaAcl::GUEST ); >> $acl->allow( $username, $cluster, GangliaAcl::EDIT ); >> >> Which does not result in the little blue "+" sign to be drawn next to graphs. >> >> From line 71 in host_view.php, there is this line: >> >> if(checkAccess(GangliaAcl::ALL_VIEWS, GangliaAcl::EDIT, $conf)) { >> >> Changing it to: >> >> if(checkAccess($clustername, GangliaAcl::EDIT, $conf)) { >> >> Allows the check to succeed, but I run into the same problem in views.php. >> >> >> What does the 'EDIT' role actually allow a user to edit, if not views? And >> is it possible to configure the interface to allow a user to only edit >> specific views? As configured now, it appears view editing is all or nothing. >> >> >> thanks, >> >> >> >> On Jun 1, 2011, at 10:08 AM, Vladimir Vuksan wrote: >> >>> >>> Announcing Ganglia Web 2.0 Release Candidate 1. >>> >>> http://ganglia.info/?p=373 >>> >>> Vladimir >>> >>> ------------------------------------------------------------------------------ >>> Simplify data backup and recovery for your virtual environment with vRanger. >>> Installation's a snap, and flexible recovery options mean your data is safe, >>> secure and there when you need it. Data protection magic? >>> Nope - It's vRanger. Get your free trial download today. >>> http://p.sf.net/sfu/quest-sfdev2dev >>> _______________________________________________ >>> Ganglia-general mailing list >>> ganglia-gene...@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/ganglia-general >> >> > > ------------------------------------------------------------------------------ > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > _______________________________________________ > Ganglia-developers mailing list > Ganglia-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ganglia-developers > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers