@@ -47,10 +47,9 @@ |
|
hasUserPermissions is the most important permissions checking method. You can use this to check any permission against a user. However, for three very common permissions, editing, viewing, and administrating, bitweaver has three convenience functions to make checking these easier. However, they are also very sophisticated, which is why recommend you use them in most cases of edit view and admin checking. See more on these below.
|
|
-{code}/* THIS FUNCTION DOES NOT EXIST YET - BUT WILL SOON */
|
-/* LibertyContent::verifyUserPermissions( $pPermName, $pVerifyAccessControl=TRUE, $pCheckGlobalPerm=TRUE ) */{/code}
|
+{code}LibertyContent::verifyUserPermissions( $pPermName, $pVerifyAccessControl=TRUE, $pCheckGlobalPerm=TRUE ){/code} |
|
-Although this function does not exist yet, it will soon, and when it does it will do the exact same thing has hasUserPermissions, however it will include an automatic failure so that you do not have to write any error handling on permissions invalidation. If you want to custom handle a failed permissions check, then you should use the hasUserPermissions method above which returns a boolean.
|
+This function does the exact same thing as hasUserPermissions, however it includes an automatic failure so that you do not have to write any error handling for a failed permissions check. If you want to custom handle a failed permissions check, then you should use the hasUserPermissions method above which returns a boolean. |
|
!!!Parameters
|
__PermName__ - the permission you want to know if the user has. example: p_blog_post
|
|
|