Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #378

Open
ZjBluxx opened this issue May 18, 2016 · 2 comments

Comments

@ZjBluxx
Copy link

ZjBluxx commented May 18, 2016

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
Copy link
Author

ZjBluxx commented May 18, 2016

version 2.0.7

@tomvolek
Copy link

tomvolek commented Sep 5, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants