Thread:Project:Support desk/Creating and checking a userright/reply

Ok, i guess I got it.

To define a right one can do this: $wgAvailableRights[] = 'myright'; $wgGroupPermissions['bureaucrat']['myright'] = true;

To ask whether on have a particular right one can use User::isAllowed