Difference between revisions of "Site:Developer stuff/Removing rights"
From Feast upon the Word (http://feastupontheword.org). Copyright, Feast upon the Word.
m (adding formatting) |
m (fixing formatting) |
||
| Line 1: | Line 1: | ||
| + | Created 1/6/06 by [[User:Matthewfaulconer|Matthew Faulconer]] | ||
| + | Created originally to remove rights from an account used for testing. | ||
| + | |||
<pre> | <pre> | ||
<nowiki> | <nowiki> | ||
| − | |||
| − | |||
| − | |||
#check user's current rights | #check user's current rights | ||
Latest revision as of 12:22, 6 January 2006
Created 1/6/06 by Matthew Faulconer Created originally to remove rights from an account used for testing.
#check user's current rights SELECT * FROM user a, user_rights b WHERE a.user_id=b.ur_user; #The way rights work, there is one field that tracks all rights. #E.g. if you are a sysop and a beauracrat, you would have two designations in the same field #running this code removes all the user's rights. #Not have any rights is equivalent to creating a new user account. #Remove all user's rights #replace XXXX with actual user_id that you want to remove rights for. UPDATE user_rights SET ur_rights="" WHERE ur_user=XXXX;