Enforce organization managing rules #3

Closed
senaduka wants to merge 4 commits from enforce_organization_managing_rules into master
senaduka commented 2018-05-04 17:32:53 +02:00 (Migrated from gitlab.com)

Created by: GotPPay

This PR contains rules checking implementation for :

  • create / update organization

Since rules are the same for address and contact of organization, functions for rules checking are calling corresponding function from organization rules checking, but, they are separated for possible future changes.

Rules are used in controllers :

  • handleAddOrganization (check if user can create organization)
  • handleChild (check if user can add child to organization)
  • handleParent (check if user can set parent to organization)
  • handleAddAddress ( check if user can add address to organization)
  • handleAddContact (check if user can add contact to organization)

DELETE rule is added to the CSV policy file.

*Created by: GotPPay* This PR contains rules checking implementation for : - create / update organization Since rules are the same for address and contact of organization, functions for rules checking are calling corresponding function from organization rules checking, but, they are separated for possible future changes. Rules are used in controllers : - handleAddOrganization (check if user can create organization) - handleChild (check if user can add child to organization) - handleParent (check if user can set parent to organization) - handleAddAddress ( check if user can add address to organization) - handleAddContact (check if user can add contact to organization) DELETE rule is added to the CSV policy file.

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: senaduka/old-svijetlastrana#3