-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature: Share wikis with users #7
Comments
Right now, we have a pivot table I think the best way to implement this admin functionality would be to create a |
Have you considered 'upgrading' Also we could distinguish between user roles and wiki_membership roles. So the user model would gain a roles field, and the new wiki_memberships model would gain a role field too. And lastly, instead of calling it roles, I'd like to think in terms of individual abilities. So Imagine that for user abilities we have the following:
Examples of wiki_member_ship abilities would be:
That way users can mix and match and create their own 'roles' on the fly. We could use a bitmask to store these values as a single integer on user and on wiki_memberships: Here's a gem i've used before that helps with this bitmask part: https://github.com/platform45/easy_roles |
At first glance, that sounds good to me (and definitely is an upgrade). I'll look at this in some more detail when I get the chance. |
I assume we also want an Admin role, which will allow the user to modify the permissions of other users. Also it looks like you have started on some user management pages at #21, so I'll probably wait until that is merged and I can rebase to finish this completely (but I'll see how much I can do before then). |
As an admin I should be able to assign wikis to users.
Users that have a wiki assigned to them will see it in their dashboard and be able to view / browse / edit the wiki.
Users should not be able to access wikis that they are not assigned to.
The text was updated successfully, but these errors were encountered: