Skip to content

Commit

Permalink
[#1025] Added permissions for ProjectDocument model
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Feb 16, 2015
1 parent b905b58 commit c527023
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions akvo/rsr/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@
rules.add_perm('rsr.change_legacydata', is_rsr_admin | is_org_admin | is_org_project_editor)
rules.add_perm('rsr.delete_legacydata', is_rsr_admin | is_org_admin | is_org_project_editor)

rules.add_perm('rsr.add_projectdocument', is_rsr_admin | is_org_admin | is_org_project_editor)
rules.add_perm('rsr.change_projectdocument', is_rsr_admin | is_org_admin | is_org_project_editor)
rules.add_perm('rsr.delete_projectdocument', is_rsr_admin | is_org_admin | is_org_project_editor)

rules.add_perm('rsr.add_organisation', is_rsr_admin)
rules.add_perm('rsr.change_organisation', is_rsr_admin | is_org_admin)

Expand Down

0 comments on commit c527023

Please sign in to comment.