Changes between Version 27 and Version 28 of RowLevelPermissions
- Timestamp:
- Aug 19, 2006, 6:50:22 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RowLevelPermissions
v27 v28 13 13 == Current Status == 14 14 15 Row level permissions is now working, it should still be considered beta but it can be used. Please see below for more details on how to utilize row lev lepermissions.15 Row level permissions is now working, it should still be considered beta but it can be used. Please see below for more details on how to utilize row level permissions. 16 16 17 17 == Todo == … … 25 25 There are a few things you need to know about row level permissions before working with them: 26 26 27 * Row level permissions use the permissions table to determine an object s possible permissions, you need to create permissions in the permissions table before using them in row level permissions.27 * Row level permissions use the permissions table to determine an object's possible permissions, you need to create permissions in the permissions table before using them in row level permissions. 28 28 * Row level permissions can be negative, this is determined by an attribute called "negative". 29 29 * The order of checking permissions will work in the following order: User Row Level Permission -> Group Row Level Permission -> User Model Level Permission -> Group Model Level Permission. The checking will stop either at the first positive or negative, and if no permission is found will return a negative. … … 71 71 }}} 72 72 73 To return the instance of a row level permission use the attrib te "model". For example:73 To return the instance of a row level permission use the attribute "model". For example: 74 74 {{{ 75 75 #!python … … 89 89 ... 90 90 }}} 91 The permission parameter can either be the codename of the permission or a permission instance. The negative param is optional and will default to false. You must pass an instance of the object and owner to this method.91 The permission parameter can either be the codename of the permission or a permission instance. The negative parameter is optional and will default to false. You must pass an instance of the object and owner to this method. 92 92 93 93 The second is create_default_row_permissions: … … 99 99 This will set up a row level permission with the default permissions set up for an object. The default permissions are: add, change and delete. 100 100 101 An example of it 's use is, this creates a change row level permission on the quartz object:101 An example of its use, this creates a change row level permission on the quartz object: 102 102 {{{ 103 103 #!python