amaiman
04-15-2010, 11:11 AM
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/project.php?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.
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.