Enforce organization managing rules #5

Open
senaduka wants to merge 3 commits from enforce_organization_managing_rules into enforce_organization_for_user_operations
senaduka commented 2018-05-04 17:48:29 +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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin enforce_organization_managing_rules:enforce_organization_managing_rules
git checkout enforce_organization_managing_rules
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#5