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

Setup documentation should include granting admin access to an initial user #100

Open
reidab opened this issue Jan 22, 2015 · 1 comment
Labels

Comments

@reidab
Copy link
Member

reidab commented Jan 22, 2015

In a production environment, or if the 'development' auth mechanism is disabled, there's no documented path to grant admin rights to an initial user.

@reidab reidab added the bug label Jan 22, 2015
@garethrees
Copy link

# rails console

# List the users – I'm assuming there aren't any/many at this stage
pp OpenConferenceWare::User.pluck(:id, :email)

# Update the initial users who you want as admins
OpenConferenceWare::User.where(:id => [2,3]).update_all(admin: true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants