scorpiusjs / scorpius

Modular admin solution built with Meteor
http://scorpiusjs.org
MIT License
34 stars 7 forks source link

No admin links on sidebar #16

Closed donmasakayan closed 7 years ago

donmasakayan commented 7 years ago

There are no admin links on the sidebar. No console errors. Also happens with latest version of Orion.

Meteor version: Meteor 1.4.1.1

Chrome:

chrome

Firefox:

firefox
donmasakayan commented 7 years ago

Unsure if related, but when I go to admin/accounts, there are no entries. Is this normal? I am currently logged in with an admin account that was created via Accounts.createUser()

accounts
rwatts3 commented 7 years ago

Can you run meteor reset ?

ecuanaso commented 7 years ago

Packages https://gist.github.com/ecuanaso/ef167ff80a8ee1566c6f1f1145ffda88

Versions https://gist.github.com/ecuanaso/ccba861ce44247b47d7007b7ccf9ba80

rwatts3 commented 7 years ago

Ok ,

Most likely this problem is caused due to roles being assigned properly. Take a look at the original orion examples project for "blog" https://github.com/orionjs/examples .

Once i've gotten things ironed out with Scorpius I will be writing documentation to help. With update examples and boilerplate projects.

For now if you create a user without the proper role of admin, You will experience this issue.

ecuanaso commented 7 years ago

Ok the admin sidebar links show now. I had to do a meteor reset. navigate to localhost:3000/admin. And register a user with the proper admin role.

rwatts3 commented 7 years ago

Yes, so signing up through the register form, ensures the proper role of admin is assigned to the first user. Also see the example project on how to define other role types. Again documentation will be coming soon for all of this.

Closing this issue in lieu of @ecuanaso 's solution.

JulianKingman commented 7 years ago

If you're adding via robomongo or something, the proper role is: "_id": "askfhgoahwrij", ..., "roles": ["admin"]