Skip to content

Commit

Permalink
Fixed admin permission to update user profile, updated user model to …
Browse files Browse the repository at this point in the history
…allow country saving
  • Loading branch information
zakhenry committed Jan 14, 2016
1 parent 66e1519 commit b739787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/app/Models/User.php
Expand Up @@ -62,6 +62,7 @@ class User extends IndexedModel implements AuthenticatableContract, SocialiteAut
'username',
'first_name',
'last_name',
'country',
'email_confirmed',
'timezone_identifier',
'avatar_img_url',
Expand Down
2 changes: 2 additions & 0 deletions api/config/permissions/user.php
Expand Up @@ -63,6 +63,8 @@
UserController::class.'@patchOne',
UserController::class.'@deleteOne',
UserProfileController::class.'@getOne',
UserProfileController::class.'@patchOne',
UserProfileController::class.'@putOne',
],
],
];

0 comments on commit b739787

Please sign in to comment.