houston icon indicating copy to clipboard operation
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

Open ZjBluxx opened this issue 8 years ago • 2 comments

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!

ZjBluxx avatar May 18 '16 15:05 ZjBluxx

version 2.0.7

ZjBluxx avatar May 18 '16 15:05 ZjBluxx

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

tomvolek avatar Sep 05 '17 09:09 tomvolek