{% load rbac_tags %} RBAC Test page

RBAC test page

You are viewing this page, which means RBAC permissions have been passed from the view.

{% if_rbac_permission owner model_inst operation roles %}

RBAC permission template tag test passed, you are allowed to perform the operation {{ operation }} over the object {{ model_inst }}, whose owner is {{ owner }}, with the roles {% for r in roles %} {{ r }}{% endfor %}.

{% else %}

RBAC permission template tag test NOT passed

{% endif_rbac_permission %} {% if_rbac_generic_permission owner model operation roles %}

RBAC generic permission template tag test passed, you are allowed to perform the operation {{ operation }} over the model {{ model }}, whose owner is {{ owner }}, with the roles {% for r in roles %} {{ r }}{% endfor %}.

{% else %}

RBAC generic permission template tag test NOT passed

{% endif_rbac_generic_permission %}