osbridge / openconferenceware

OpenConferenceWare is an open source web application for events and conferences. This customizable, general-purpose platform provides proposals, sessions, schedules, tracks and more.
http://groups.google.com/group/openconferenceware
Other
272 stars 56 forks source link

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

Open reidab opened 9 years ago

reidab commented 9 years ago

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.

garethrees commented 7 years ago
# 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)