Adjust layout

This commit is contained in:
junyi 2026-08-17 07:28:00 +00:00
parent 113a558158
commit ac49ad90f6
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ class Admin::PersonalPluginFieldsController < OrbitMemberController
require 'fileutils'
include Admin::PersonalPluginFieldsHelper
before_action :set_personal_plugin_field, only: [:show, :edit , :update, :destroy, :fields_setting, :update_fields_setting,:generate_plugin]
before_action :check_system_admin_rights
before_action :check_system_admin_rights
def index
@personal_plugin_fields = PersonalPluginField.order_by(:created_at=>'desc').page(params[:page]).per(10)
@ -949,7 +949,7 @@ class Admin::PersonalPluginFieldsController < OrbitMemberController
end
end
private
def check_system_admin_rights
def check_system_admin_rights
user_has_rights = (current_user.is_admin? rescue false)
render_401 if !user_has_rights
end