gterrono / houston

A zero-config, Django Admin-like admin for Meteor
https://atmospherejs.com/houston/admin
MIT License
807 stars 97 forks source link

Admin panel not loading #366

Open angelvasa opened 8 years ago

angelvasa commented 8 years ago

Version: 2.0.6

screen shot 2016-02-13 at 9 14 08 pm

Thanks!

tomvolek commented 7 years ago

I am assuming you are using the accounts package.
In case the above thosn't work. And assuming you Try this:

  1. Remove the Houston package meteor remove Houston package : meteor remvoe houston:admin
  2. Use a mongo collection management tool like Robomongo or login to Mongo DB on command line and Drop the two Houston collections called "houston_collections" and "houston_admins".
  3. Login to your application with the user Id you have designated to be admin and go to the /admin url . Now you will see the message "You are not an Admin. If you need to use the Houston Admin, please ask your Admin to grant you access." . You will see a button saying "Claim Admin" press it and it will add the current logged in user to the Houston-admins collection in Mongo and you will be redirected to the Houston /admin page .

The root cause is this check in the code : https://github.com/gterrono/houston/blob/master/client/admin_login.html Line 4, the currentUserIsAdmin doesn not return true.

Hope this Helps Tom