nate-strauser / wework

We Work Meteor, a job board and developer directory for Meteor specific work
https://www.weworkmeteor.com
MIT License
288 stars 145 forks source link

How to admin? #105

Closed FrenchFryInteractive closed 8 years ago

FrenchFryInteractive commented 8 years ago

How do I enable admin functions?

FrenchFryInteractive commented 8 years ago

I figured it out.. Learning so much playing around with this,. Many thanks

nate-strauser commented 8 years ago

Great! Sorry I didn't get back to you in time.

On Fri, Jul 15, 2016 at 8:45 AM, Hundhest notifications@github.com wrote:

I figured it out.. Learning so much playing around with this,. Many thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nate-strauser/wework/issues/105#issuecomment-232941889, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXyDvWqEGhTZIwyL9Py4aGPcF80A_Hsks5qV4DMgaJpZM4JK3MR .

FrenchFryInteractive commented 8 years ago

No problem. I am learning a lot by trying out our your framework here. Thank you.

justinxreese commented 8 years ago

I think this should be re-opened as an actual issue to add documentation for how to add an admin. I have no clue how to do this and the comments unfortunately did not lead to anything.

justinxreese commented 8 years ago

For anyone that finds this thread in the future: the answer is to add an adminEmails: ['your@email.address'], setting to the AdminConfig var in both/admin.js

nate-strauser commented 8 years ago

Feel free to submit a pull request to change the readme file. We can add notes there. Probably need a link to the yogiben:admin package too as that has all the admin usage documentation.

On Aug 4, 2016 1:32 AM, "Justin Reese" notifications@github.com wrote:

For anyone that finds this thread in the future: the answer is to add an adminEmails: ['your@email.address'], setting to the AdminConfig var in both/admin.js

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/nate-strauser/wework/issues/105#issuecomment-237456695, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXyDrbdLALgs5Ozb3zc4Ma5CwdBENX6ks5qcXlugaJpZM4JK3MR .

justinxreese commented 8 years ago

Actually, my instructions are wrong because if you sign up for an account with twitter there seems to be no email address tied to that?

justinxreese commented 8 years ago

@nate-strauser would you consider posting the wework admin.js with credentials omitted so I could see what you're doing? the instructions on the yogiben package also don't really explain what they're doing and I think there is some application logic involved with adminining (they reference posts being a thing in their example app)

nate-strauser commented 8 years ago

it's already available :)

https://github.com/nate-strauser/wework/blob/master/both/admin.js

the yogiben admin package will make the very first user that goes to /admin an admin. I just use that mechanism to make my own account the first admin. Works well enough for weworkmeteor. In the past I have specified emails as shown in docs to make users be admins.

All you really need is 1 admin user, then you can make other admins from that. That is how you could make your twitter based account be an admin.

On Thu, Aug 4, 2016 at 12:14 PM, Justin Reese notifications@github.com wrote:

@nate-strauser https://github.com/nate-strauser would you consider posting the wework admin.js with credentials omitted so I could see what you're doing? the instructions on the yogiben package also don't really explain what they're doing and I think there is some application logic involved with adminining (they reference posts being a thing in their example app)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nate-strauser/wework/issues/105#issuecomment-237603394, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXyDvoRw9QUwX6ozr-TKjjvUmFMXxuzks5qcg_wgaJpZM4JK3MR .