Forums / Cotonti / Extensions / Support / Question about plugin

Kilandor
#14937 2009-07-27 19:43
First thing to note, you don't have to use sed_auth in a standalone plugin as it is already loaded for you.

switch($s)
{
	case 'edit':
		sed_block($usr['isadmin']); //Blocks anyone who isn't an admin - if value is false it blocks them
		/* your code */
	break;
}