![]() |
Admin 'Announcements' permission
I want to give an admin only access so he can edit users but I don't want him to see any hidden forums.
What I do is, I go to AdminCP > Usergroups > Administrator Permissions and set 'Can Administer User Permissions' on 'yes'. Just that one, no others. And by 'Quick User Links' in his profile I set 'Edit Forum Permissions' so that he can't see the forum I don't want him to see. Than I log out, log in under his username, go to the admin panel and see that he still has access to 'Announcements'. When I click on it, I see that he can make announcements, for all forums, also those that he doesn't have access to. So he can see them and therefor knows they are there. But I don't want him to know those forums are there. So I want that he doesn't have access to 'Announcements' and/or can't see the hidden forums. But how do I do that? |
Do you want him to be able to manage announcements? If not, then maybe the easiest thing to do is to add some code near the top of admincp/annoucement to check for his user group or userid and print no permission, like:
Code:
if (is_member_of($vbulletin->userinfo, X)) Code:
if ($vbulletin->userinfo['userid'] == X) If you want him to be able to do annoucements for he other forums it's a little more difficult because you'd have to check forum permissions elsewhere in the file. |
Thanks! But how do I put in code?
|
Oh right, should have mentioned that. You would have to edit the php file, in this case admincp/announcement.php. You can see there's already another permission check right under the comment that says "LOG ACTION", so you could put it before or after that code.
|
All times are GMT. The time now is 02:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|