rails-devise-roles icon indicating copy to clipboard operation
rails-devise-roles copied to clipboard

access denied as admin

Open llwang8 opened this issue 10 years ago • 2 comments

I signed in as First User, Then I clicked user link and got "Access Denied". What is wrong? How to fix it?

llwang8 avatar Nov 22 '15 18:11 llwang8

Sorry to hear of the problem. I tried and there's no problem with the application.

Perhaps you need to run rake db:reset to create the admin user again?

Assuming you have not made any changes from the app that is generated by Rails Composer.

DanielKehoe avatar Nov 23 '15 05:11 DanielKehoe

I get this message when trying to run rake db:seed on my heroku production env:

  ActiveRecord::SchemaMigration Load (9.4ms)  SELECT "schema_migrations".* FROM "schema_migrations"
  User Load (5.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" IS NULL LIMIT 1
   (4.7ms)  BEGIN
   (0.8ms)  ROLLBACK
rake aborted!
ActiveRecord::RecordInvalid: Validation failed: Email can't be blank, Password can't be blank

This succeeds when working locally though... But can't seed the db on heroku, the parameters i set on the secrets file do not get sent somehow.

M0unir avatar Jun 28 '16 00:06 M0unir