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

GRN2-176: Create a role editor that allows admins to specify what permissions each role has #709

Merged
merged 22 commits into from
Jul 31, 2019

Conversation

shawn-higgins1
Copy link
Contributor

@shawn-higgins1 shawn-higgins1 commented Jul 30, 2019

I've create this large PR as a preliminary pass at a roles editor. However, there are some other options for roles management:

  1. Keep this PR as it is and allow any user with the appropriate permissions to edit roles
  2. Only allow super admins to modify roles
  3. Remove Rolify and scope the roles to providers but, just hardcore the role permissions
  4. Keep Rolify and continue basing the permission off the Role name

It would be great to get some feedback on what option you guys think is the best way forward.

@coveralls
Copy link

coveralls commented Jul 30, 2019

Coverage Status

Coverage increased (+0.6%) to 92.334% when pulling 6fc3e1c on shawn-higgins1:add-roles-editor into 02b342b on bigbluebutton:master.

app/assets/javascripts/user_edit.js Show resolved Hide resolved
app/assets/stylesheets/application.scss Outdated Show resolved Hide resolved
app/controllers/rooms_controller.rb Outdated Show resolved Hide resolved
app/controllers/rooms_controller.rb Outdated Show resolved Hide resolved
app/controllers/rooms_controller.rb Outdated Show resolved Hide resolved
app/mailers/user_mailer.rb Show resolved Hide resolved
app/mailers/user_mailer.rb Show resolved Hide resolved
app/models/user.rb Outdated Show resolved Hide resolved
app/models/user.rb Outdated Show resolved Hide resolved
yarn.lock Show resolved Hide resolved
app/controllers/admins_controller.rb Outdated Show resolved Hide resolved
app/controllers/admins_controller.rb Outdated Show resolved Hide resolved
app/controllers/admins_controller.rb Show resolved Hide resolved
app/controllers/admins_controller.rb Show resolved Hide resolved
app/controllers/admins_controller.rb Show resolved Hide resolved
app/controllers/admins_controller.rb Show resolved Hide resolved
app/controllers/users_controller.rb Show resolved Hide resolved
@jfederico jfederico merged commit 4fc1714 into bigbluebutton:master Jul 31, 2019
balert pushed a commit to tubraunschweig/greenlight that referenced this pull request Mar 31, 2020
…missions each role has (bigbluebutton#709)

* Add roles editor

* Add colour selection ability to roles

* Add ability to assign roles to users in the UI

* Remove rolify and replace it with our own custom roles implemenation

* - Fix all existing roles functionality
- Fix super admins

* Fix bugs with new customers not have default roles

* Add can't create room setting

* Code improvements

* Fix migration

* Add tests for new methods

* Translate reserved role names

* Pull roles from saml/ldap

* Fix rspec

* Fix scrutinizer issues

* Fix email promoted/demoted tests

* Apply comments

* Redirect directly to the main room

* Add comments
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.

4 participants