mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Pundit policy fix for app updation
This commit is contained in:
parent
829944df89
commit
7a89deaea3
1 changed files with 1 additions and 1 deletions
|
|
@ -48,8 +48,8 @@ class AppsController < ApplicationController
|
|||
end
|
||||
|
||||
def update
|
||||
authorize App
|
||||
@app = App.find params[:id]
|
||||
authorize @app
|
||||
@app.update(params['app'].permit('name', 'current_version_id', 'is_public'))
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue