Skip to content

Commit

Permalink
fix permissions in the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
antopalidi committed Sep 6, 2024
1 parent 863bb80 commit 8e8114a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def create
end

def edit
enforce_permission_to(:update, :share_token, share_token: current_token)
enforce_permission_to(:update, :share_tokens, share_token: current_token)
@form = form(ShareTokenForm).from_model(current_token)
end

Expand Down

0 comments on commit 8e8114a

Please sign in to comment.