Changes between Version 25 and Version 26 of RowLevelPermissions
- Timestamp:
- Aug 19, 2006, 1:01:38 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RowLevelPermissions
v25 v26 132 132 133 133 In a template, you can use the tag if_has_perm to check for permissions. The tag has the following syntax: 134 {{{ 134 135 {% load auth %} 135 136 {% if_has_perm [not] (permission codename) [object] %} … … 138 139 ... 139 140 {% end_if_has_perm %} 141 }}} 140 142 The parameters in square brackets are optional and the normal brackets are required. The else statement is optional. The permission codename should be in the format: app_label.codename. 141 143