PDA

View Full Version : Delete Permission


Freecode
02-01-2007, 07:41 PM
How can i check if the user thats browsing the current thread is able to delete the thread?

HMBeaty
02-01-2007, 07:52 PM
Found out what usergroup that person is in, and check the usergroup permissions for that particular usergroup

Freecode
02-01-2007, 07:58 PM
Some users have multiple usergroups. Also mind showing some example code of how to do it?
Tnx

HMBeaty
02-01-2007, 08:04 PM
No, just check both usergroups. Its in the admincp > usergroups > usergroup manager

Freecode
02-01-2007, 08:04 PM
Anyone else mind showing an example?

HMBeaty
02-01-2007, 08:06 PM
What example is there to show?

go to admincp > usergroups > usergroup manager and check their "Post / Thread Permissions"

Freecode
02-01-2007, 08:29 PM
Sorry if i didnt post in the right forum or specify. But im trying to check this inside a plugin im writing. :x