Browse Source

更改:访问菜单的权限

pull/347/head
yystopf 2 years ago
parent
commit
03c9df3f92
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/controllers/api/v1/projects/datasets_controller.rb

+ 2
- 1
app/controllers/api/v1/projects/datasets_controller.rb View File

@@ -1,5 +1,6 @@
class Api::V1::Projects::DatasetsController < Api::V1::BaseController class Api::V1::Projects::DatasetsController < Api::V1::BaseController
before_action :require_member_above
before_action :require_public_and_member_above, only: [:show]
before_action :require_member_above, only: [:create, :update]
before_action :find_dataset, only: [:update, :show] before_action :find_dataset, only: [:update, :show]
before_action :check_menu_authorize before_action :check_menu_authorize




Loading…
Cancel
Save