The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Prevent users from editing CMS posts
In the current version of VB CMS, there is no option to prevent users from editing their own posts (articles) on the CMS. This is being discussed here: http://www.vbulletin.com/forum/proje...?issueid=37461 and will likely be resolved in a future version when they add the CMS permissions that should have been there in the first place.
In the meantime, I'd like to make a hack to the code to prevent non-administrators from editing any CMS posts. Before I go poking around in the code, I wanted to see if anyone here (who is probably more familiar with the code than I am) could give me an idea of where I should look to make this change. I assume I'd just need to add an 'if' statement somewhere to check if a user is an admin before proceeding with the edit request, but I'm not sure where the code that initiates the edit request can be found. |
#2
|
||||
|
||||
How about a condition around the edit button to only show to some usergroups (vbcms_content_article_preview and vbcms_content_article_page)? Or, if do=edit , then give a no permission for some usergroups (hook location "vbcms_article_populate_start"?)? (Or a combo of both.)
|
#3
|
|||
|
|||
The problem is, if they can't edit they can't post in the first place. To implement this, you will have to flag the post in the db with some extra fields.
|
#4
|
||||
|
||||
Give them the permission to edit so they can post, but remove the edit button and give them a no permission on the edit article page. At least, that is what I was thinking.
|
#5
|
|||
|
|||
Hi all, does exist a solution to this issue?
|
#6
|
||||
|
||||
Yeah, there are now CMS permissions to set up who can post and edit.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|