houston
houston copied to clipboard
You are not an Admin. If you need to use the Houston Admin, please ask your Admin to grant you access. Back to Home Log out
To make sure we can help you quickly, please include the version of Houston you are using, steps to replicate the issue, a description of what you were expecting and a screenshot if relevant.
Thanks!
version 2.0.7
I am assuming you are using the accounts package.
In case the above thosn't work. And assuming you Try this:
- Remove the Houston package meteor remove Houston package : meteor remvoe houston:admin
- 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".
- 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