Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Dashboard is not visible to Moderators

WH4YWH4Y New
edited November 2013 in Vanilla 2.0 - 2.8

Moderators on my site couldn't see the dashboard menu. On my darkmist theme, I added the following code to allow them view of dashboard menu:

$this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings', array('Garden.Moderation.Manage'));

But this comes in the permission settings of an administrator and that is why I see two dashboard tabs.

The code here:

$Session = Gdn::Session();
                    if ($this->Menu) {
                        $this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings', array('Garden.Settings.Manage'));
                        // $this->Menu->AddLink('Dashboard', T('Users'), '/user/browse', array('Garden.Users.Add', 'Garden.Users.Edit', 'Garden.Users.Delete'));
                        $this->Menu->AddLink('Activity', T('Activity'), '/activity');
                        $this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings',array('Garden.Moderation.Manage'));

Comments

This discussion has been closed.