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

Added documentation about assigning user roles #5410

Merged

Conversation

Aminehassou
Copy link
Contributor

What this PR does

Adds some extra information to user_roles.md about the /setting page that allows for easy role assignment.

@@ -39,6 +39,10 @@ permissions, or use another account and select the 'instructor' option from the
onboarding process (http://localhost:3000/onboarding). Either way, you'll be able
to create new courses/programs after that from the home page.

## Assigning special roles

To assign users to special roles. Go to the `/settings` page in the dashboard (http://localhost:3000/settings). This will allow you to give users admin privileges and other special user permissions such as classroom program manager, technical help staff, Wikipedia expert and many others. Note that your account needs to have admin permissions to access the page (refer to [Admin permissions](#admin-permissions) for more information)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding special users actually requires super_admin permissions (permissions: 3), so this should probably add a note about that in the admin section as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done

@@ -32,13 +32,21 @@ You can do so from the rails console:
- $ `rails c`
- > `User.find_by(username: '<your username>').update_attribute(:permissions, 1)`

If you need a higher level of permission above admin. Consider giving your main account super admin permissions instead:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar fix: "If you need a higher level of permission above admin, consider"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done

## Instructor role

To use the dashboard as an instructor, you can either use an account with admin
permissions, or use another account and select the 'instructor' option from the
onboarding process (http://localhost:3000/onboarding). Either way, you'll be able
to create new courses/programs after that from the home page.

## Assigning special roles

To assign users to special roles. Go to the `/settings` page in the dashboard (http://localhost:3000/settings). This will allow you to give users admin privileges and other special user permissions such as classroom program manager, technical help staff, Wikipedia expert and many others. Note that your account needs to have super admin permissions to access the page (refer to [Admin permissions](#admin-permissions) for more information)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"To assign users to special roles, go"

Also, add a period at the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done

@ragesoss ragesoss merged commit 857f3d3 into WikiEducationFoundation:master May 26, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants