Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring roles and permissions names #1

Merged
merged 3 commits into from
Nov 10, 2016
Merged

Conversation

hiqsol
Copy link
Member

@hiqsol hiqsol commented Nov 3, 2016

Roles:

  • role:client, role:support, role:manager
  • role:bill.manager, role:domain.freezer

Permissions:

  • domain.set-contacts
  • bill.update, bill.create, bill.delete

Another variant use uppercase for roles (less attractive):

  • CLIENT
  • ADMIN
  • BILL.MANAGER

@hiqsol
Copy link
Member Author

hiqsol commented Nov 4, 2016

public function testMighty()
{
    $this->auth->setSmartAssignments(['admin', 'manager', 'bill.create', 'domain.freeze'], 'user:mighty');

@hiqsol hiqsol merged commit 84c6b5a into hiqdev:master Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants