hasib32 / rest-api-with-lumen

Rest API boilerplate for Lumen micro-framework.
486 stars 144 forks source link

Show how scopes are difened #39

Closed ibpavlov closed 6 years ago

ibpavlov commented 7 years ago

Based on my issue for scopes #31 this is my pull request. You have basic 'users' scope for all user related stuff. And users:create, users:read..etc. if you want specific scope for a token. For Administrator there is no logic to have 'admin' scope, so if you pass and 'basic' scope to an administrator he will have the same permissions as a nomer users and he will be able to control only his objects. I also updated the Readme file for message entity. If you find any problem please let me know or if you don't agree with my proposal.

hasib32 commented 7 years ago

@shahriar1 can you please review the pull request? I will do my self as well.

shahriar1 commented 7 years ago

okay @hasib32 I'll go through with the code changes asap.

ibpavlov commented 6 years ago

@hasib32 Have you got a chance to check this out?