first version of confined sidebar render
This commit is contained in:
1 parent
b4a2737407
commit
c6894be962
18 files changed
+353
-158
No files matched your search
@@ -1,10 +1,13 @@
|
||||
class Admin::ObjectAuthsNewInterfaceController < OrbitBackendController
|
||||
include OrbitCoreLib::PermissionUnility
|
||||
before_filter :force_order
|
||||
|
||||
|
||||
def set_module_app
|
||||
@module_app = ModuleApp.where(:title=>'Announcement').first
|
||||
end
|
||||
|
||||
|
||||
def setting
|
||||
|
||||
@sys_users = User.all(conditions: {admin: false}).includes(:avatar)
|
||||
@ob_auth = ObjectAuth.find params[:object_auth_id]
|
||||
@options_from_collection_for_select_ob_auth = @ob_auth.siblings.collect{|oa| [oa.auth_obj.pp_object,oa.id] }
|
||||
@@ -60,6 +63,7 @@ class Admin::ObjectAuthsNewInterfaceController < OrbitBackendController
|
||||
|
||||
def force_order
|
||||
authenticate_user!
|
||||
set_module_app
|
||||
check_if_user_can_do_object_auth
|
||||
end
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class Admin::UsersNewInterfaceController < ApplicationController
|
||||
|
||||
def show
|
||||
@user = User.find(params[:id])
|
||||
@plugins = OrbitApp::Module::Registration.all
|
||||
@plugins = OrbitApp::Plugin::Registration.all
|
||||
|
||||
@profile_data = []
|
||||
@teacher_data = []
|
||||
|
||||
Reference in new issue
Block a user