mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
fixes change role API
This commit is contained in:
parent
06a5bff084
commit
d8a289e825
@ -205,8 +205,8 @@ class API::MembersController < API::ApiController
|
|||||||
def update_role
|
def update_role
|
||||||
authorize @member
|
authorize @member
|
||||||
|
|
||||||
user.remove_role @member.role.to_sym
|
@member.remove_role @member.role.to_sym
|
||||||
user.add_role params[:role]
|
@member.add_role params[:role]
|
||||||
|
|
||||||
render json: @member
|
render json: @member
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user