Differences from version 4 to 7



@@ -24,11 +24,12 @@

 You can find the group setup page at either 'Administration' -> 'Users' -> 'Groups and Permissions' or my.domain.com/users/admin/edit_group.php. This page lists all available groups, some of their settings and outlines all permissions of each group. To edit a given group, click the 'Edit' icon. To view the group members, click the 'Group Members' icon. Bitweaver installs with several groups already pre-defined.
 
 Once in the edit screen, you can modify group settings and assign / remove individual permissions that apply to the given group. This screencast illustrates how you can add the permission to remove wiki pages to registered users.
-{attachment id=542}
+{file id=542}
 
 !!Assigning Users to Groups
 Here is a short screencast illustrating how to manually add a new user and how to add that user to the editor group.
 {attachment id=543}
+
 !!Levels
 Levels can be used to group certain permissions and thus easily assign a set of permissions to a group. ''Assigning a permission to a level has no outcome on the users or groups. It's merely a way to organise permissions.''
 

@@ -46,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

@@ -66,6 +66,15 @@

 {code}LibertyContent::hasAdminPermission( $pVerifyAccessControl=TRUE ) {/code}
 
 These three methods of LIberty Content are the prefered way of checking for these three basic permissions. Bitweaver's custom permissions sytem is rather sophisiticated, so it is highly recommended you use these functions. __To make use of these functions in your package you must also register your package permissions with these functions".
+
+There are also verify versions of these three methods which will automatically generate a fatal error page for you on invalidation. Again, as above, if you want to custom handle invalidation you should use the "has" methods above.
+
+{code}LibertyContent::verifyEditPermission( $pVerifyAccessControl=TRUE ){/code}
+
+{code}LibertyContent::verifyViewPermission( $pVerifyAccessControl=TRUE ){/code}
+
+{code}LibertyContent::verifyAdminPermission( $pVerifyAccessControl=TRUE ) {/code}
+
 
 !!!Registering Permissions with Liberty
 In your package constructor you can register edit, view, and admin permissions with the base LibertyContent class. Here is an example from BlogsPackage, file: BitBlog.php (The whole constructor is shown here, ''permissions registration is at the bottom''):
Page History
Date/CommentUserIPVersion
14 Apr 2008 (13:39 UTC)
verifyUserPermissions exists.
Will69.203.72.1617
Current • Source
Will206.83.76.156
View • Compare • Difference • Source
xing194.152.164.455
View • Compare • Difference • Source
Will206.83.76.154
View • Compare • Difference • Source
PreyCor198.54.202.1943
View • Compare • Difference • Source
xing194.152.164.452
View • Compare • Difference • Source