mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Add check for edit permission
This commit is contained in:
parent
6f1f6e297c
commit
3069ec8dd2
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class AssetsController < ApplicationController
|
|||
|
||||
before_action :load_vars, except: :create_wopi_file
|
||||
before_action :check_read_permission, except: :file_present
|
||||
before_action :check_edit_permission, only: :edit
|
||||
before_action :check_edit_permission, only: %i(edit create_start_edit_image_activity)
|
||||
|
||||
def file_present
|
||||
return render_403 unless @asset.team == current_team
|
||||
|
|
Loading…
Reference in a new issue