Appauth new interface for setting managers. Fix showing sidebar for News and Announcement when setting managers at module app page.
This commit is contained in:
1 parent
f13e006e4d
commit
87ebcc48e7
13 files changed
+204
-40
No files matched your search
@@ -68,9 +68,9 @@ module ApplicationHelper
|
||||
end
|
||||
end
|
||||
|
||||
def active_sys_call_for_app(controller_name,action_name,app_title)
|
||||
def active_sys_call_for_app(controller_name,action_name,app_title,field = :id)
|
||||
unless active_for_action(controller_name,action_name).nil?
|
||||
app = ModuleApp.find params[:id]
|
||||
app = ModuleApp.find params[field]
|
||||
app.title == app_title ? 'active' : nil
|
||||
else
|
||||
nil
|
||||
|
||||
Reference in new issue
Block a user