Changes between Version 25 and Version 26 of RowLevelPermissions


Ignore:
Timestamp:
Aug 19, 2006, 1:01:38 PM (18 years ago)
Author:
Chris Long
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RowLevelPermissions

    v25 v26  
    132132
    133133In a template, you can use the tag if_has_perm to check for permissions. The tag has the following syntax:
     134{{{
    134135{% load auth %}
    135136{% if_has_perm [not] (permission codename) [object] %}
     
    138139...
    139140{% end_if_has_perm %}
     141}}}
    140142The 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.
    141143
Back to Top