danmaclean / gee_fu

An extensible Ruby on Rails web-service application and database for visualising HTGS data
18 stars 5 forks source link

Add admin user #8

Closed mrship closed 11 years ago

mrship commented 11 years ago

PR to add an admin user.

As discussed, to create an admin run rake admin:set email=me@example.com to remove an admin run rake admin:remove email=me@example.com. The rake task deals nicely with lack of email param, or missing user for a provided email.

This removes "Samples" from the navbar and adds a before_filter to the organisms_controller to check for admin status.

mrship commented 11 years ago

Oh yes, you'll need to rake db:migrate for this one too!