
Public Member Functions | |
| start ($var, $user, $perm, $object=null) | |
This template tag is available by default under the name aperm. Example of usage:
{aperm 'can_drive', $user, 'MyApp.can_drive'} {aperm 'can_drive_big_car', $user, 'MyApp.can_drive', $bigcar} {if $can_drive}Can drive!{/if}
| Pluf_Template_Tag_APerm::start | ( | $ | var, | |
| $ | user, | |||
| $ | perm, | |||
| $ | object = null | |||
| ) |
| string | Variable to get the permission | |
| Pluf_User | ||
| string | Permission string | |
| mixed | Optional Pluf_Model if using row level permission (null) |