OmarElgabry/lumen-api-oauth

Give user to update his email id and password?

Opened this issue · 1 comments

If user is not admin it can not change his data but i need that if users want to change his data he can do. please suggest how i can do that?

$this->isOwner([
'posts' => ['destroy', 'update'],
'comments' => ['destroy', 'update'],
'users' => ['update']
]);
$this->isAdmin([
'users' => ['destroy']
]);

is this change to authorizeServiceprovider class will work?

If not please assist me how i can achieve this. Thanks

iseth commented

I am working on this feature.