Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Making dashboard available to non-admins
I have a non-admin role that allows for removal and adding of users, but the dashboard link doesn't actually come up. It works if I manually enter 'p=/dashboard/user' in the address bar, but I'd like the dashboard link to come up just like it would on my admin account... is there a way to do this?
0
Comments
// $this->Menu->AddLink('Dashboard', T('Users'), '/user/browse', array('Garden.Users.Add', 'Garden.Users.Edit', 'Garden.Users.Delete'));
To this:
$this->Menu->AddLink('Users', T('Users'), '/dashboard/user', array('Garden.Users.Add', 'Garden.Users.Edit', 'Garden.Users.Delete'));
Short answer: copy it to the 'views' folder of your theme and edit it.
Another question, not very important, but I thought I'd ask now that I'm at it: is there a way to make the link not appear for admin (since admin has got the dashboard link, a separate link to user settings is kinda redundant)?
if(!$Session->CheckPermission('Garden.Settings.Manage'))