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

User Groups #18

Closed
jasonvarga opened this issue Dec 7, 2017 · 0 comments
Closed

User Groups #18

jasonvarga opened this issue Dec 7, 2017 · 0 comments

Comments

@jasonvarga
Copy link
Member

In v2, users are tracked within the user groups yaml.

With #9 it would be nice to move user groups into a config file. However, we don't want to track the users in there.

The idea is to flip it, and put the groups within the user's yaml.

v2:

# groups.yaml
admin:
  title: Admin
  roles:
    - admin
  users:
    - john

v3:

# config/auth.php
return [
  'groups' => [
    'admin' => [
      'title' => 'Admin',
      'roles' => ['admin'],
    ]
];
# users/john.yaml
name: John
groups:
  - admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant