How to add "Manage All" to discussions-manage page
On the discussions-manage page when logged in as an administrator, there is an vertical ellipses menu icon on the upper-right (see image). How can I make this appear for a custom permission level I created? I have searched the Studio->Permissions, Studio->Pages, Studio->Navigation and cannot seem to find where to configure this.
-
- · LoneTreeLeaf
- ·
Welcome to the club, been waiting for an answer on this myself when I created a custom role for management that also needs access to said menu items.
-
- · mrochek
- ·
@Leonid S Can you help a couple of us with this question please? Thank you!
-
-
·
LeonidS
- ·
Hello all!
Sorry for missing answer there, dear @LoneTreeLeaf . No, this menu doesn't exist in Studio. It was set for the specific memberships in the serviceManageTools method of the modules\base\general\classes\BxBaseModGeneralModule.php class . This part looks like:
if(BxDolAcl::getInstance()->isMemberLevelInSet(192)) {
where the integer value matches every bit of the membership ID.
But this method can take the array of IDs and you may change it like:
if(BxDolAcl::getInstance()->isMemberLevelInSet(array(1,2,3, [ID of your custom level]))) {
-
·
LeonidS
-
- · mrochek
-
·
In reply to LeonidS
- ·
Thanks @LeonidS ! Good stuff!
-
- · mrochek
-
·
In reply to LeonidS
- ·
@Leonid S Where do we find the "membership ID" values? One of the sys tables?
-
- · mrochek
-
·
In reply to LeonidS
- ·
sys_acl_levels?
-
-
·
LeonidS
-
·
In reply to mrochek
- ·
Yes, in the sys_acl_levels table.
-
·
LeonidS
-
- · mrochek
- ·
Worked like a charm! Thanks again, Sir!
-
- · LoneTreeLeaf
- ·
Better late than never @Leonid S! Thank you kindly! :)
-
😊