foundersandcoders / open-tourism-platform

An open platform to facilitate the creation of apps to promote local tourism and business in Nazareth
MIT License
17 stars 3 forks source link

Implement User permissions #152

Closed m4v15 closed 6 years ago

m4v15 commented 6 years ago

12/10/2017

DONE! 🎉

I've tried to make it in the same structure as @mattlub events tests using the Promise.all stuff.

mattlub commented 6 years ago

@m4v15 usage has changed, so the apiPermissions constants file needs to be updated. this should be the only thing to change though.

e.g.

fields: {
  name: [ roles.SUPER, roles.OWNER]
}
mattlub commented 6 years ago

merge master!

mattlub commented 6 years ago

@m4v15 a damn good job, permissions on all routes...