How do I check if the current user has a permission?

by Stephan Borg
Friday 01 of July, 2005
Posted to Developer's FAQ

if ($gBitUser->hasPermission('bit_p_admin_cms')) {
This user has permission!

NOTE: if you want to exit and display an error message if they don't have permission, then:

->verifyPermission'bit_p_view' );

This displays a standard "You do not have permission!" error message.
Post Comment
If you are already registered with bitweaver please enter your login details above.
Sorry, we have to ask.
Anonymous Post