Commits

Hector Garcia committed 5ffbb71

Minor fix in doc

  • Participants
  • Parent commits 89f2818

Comments (0)

Files changed (1)

File docs/overview.rst

 Asking for permission in django-rbac is a 2-step process:
 
 1. Get the roles: The user that tries to perform the operation over an object or model does so within a context given between him and the owner or the object/model itself. You have to provide a python list of ``RBACRole`` objects to the function that will later check authorization.
-2. Call the ``get_permission`` method from one of the two RBAC permission objects (``RBACPermission.objects.get_permission`` or ``RBACGenericPermission,objects.get_permission``). The method will return ``True`` or ``False`` if the operation is authorized or not.
+2. Call the ``get_permission`` method from one of the two RBAC permission objects (``RBACPermission.objects.get_permission`` or ``RBACGenericPermission.objects.get_permission``). The method will return ``True`` or ``False`` if the operation is authorized or not.
 
 You are totally responsible of executing step 1. The ways that roles can be assigned to users are endless, particular to each application or project, so django-rbac cannot provide any generic method to accomplish this task. Jump to the subsection "Writing functions to get roles" in the "Roles" section for more information.