Fix sidebar and hide some links by roles
This commit is contained in:
1 parent
82d78acbad
commit
7f2564a81e
4 files changed
+21
-11
No files matched your search
@@ -1,4 +1,4 @@
|
||||
class Admin::ModuleAppsNewInterfaceController < ApplicationController
|
||||
class Admin::ModuleAppsNewInterfaceController < OrbitBackendController
|
||||
before_filter :authenticate_user!
|
||||
before_filter :is_admin?
|
||||
include AdminHelper
|
||||
@@ -25,9 +25,9 @@ class Admin::ModuleAppsNewInterfaceController < ApplicationController
|
||||
def update_setting
|
||||
module_app = update_setting_by_params
|
||||
if module_app.save!
|
||||
flash[:notice] = "Update Done"
|
||||
flash[:notice] = t("admin.object_auth.update_done")
|
||||
else
|
||||
flash[:notice] = "Update Failed"
|
||||
flash[:notice] = t("admin.object_auth.update_failed")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user