Closed halfghaninne closed 8 years ago
I added methods in the User model for adding and removing permissions. I'm interested in hearing if these solutions are less-than-ideal and if so, how to make them more efficient.
Oh. I didn't realize I could go back and edit a migration file. I thought that was frowned upon.
Fixes #25
Login Credentials
Your GH account
You should be an "admin user" to walk through this process (ie
User#has_edit_permissions => true
andUser#has_view_permissions => true
)Functionality to Test
rails c
, you should be able to disable your permissions by runningu = User.find(your_id)
andu.remove_view_permission
andu.remove_edit_permission
rails c
by runningu = User.find(your_id)
andu.set_view_permission
and/oru.set_edit_permission