Fork me on GitHub
Current releases are 2.1.3 (9 Sept 2014) and (5 Aug 2014)

Ready for 2.1? Find out if your plugins are compatible. 2.0 will no longer be updated after Dec 2014.

OOP beginner - code to update a user's role?

mm2703mm2703 New
edited September 2011 in Vanilla 2.0 Help
Hello guys.

I am trying to find the PHP code to update a specific user's permission. I've tried updating the table UserRole to the desired permission, but I think I need to do something more because the user's ability to post and edit threads on the forums doesn't really change after I've done this.

I know very little about POO but I suspect I need to use GetUser($ID) and something along the lines of "$this->User->Update->..."

Anyone could help me? Thanks!!
Sign In or Register to comment.