Updated Approvable to work for submanager role also
This commit is contained in:
1 parent
182729a7fe
commit
635f82db2f
4 files changed
+4
-5
No files matched your search
@@ -14,7 +14,7 @@ class OrbitBackendController < ApplicationController
|
||||
status << 'is_top'
|
||||
status << 'is_hot'
|
||||
status << 'is_hidden' unless is_guest?
|
||||
if @module_app.is_approvable && is_manager?
|
||||
if @module_app.is_approvable && (is_manager? || is_sub_manager?)
|
||||
status << 'is_pending'
|
||||
status << 'is_checked'
|
||||
status << 'is_rejected'
|
||||
|
||||
@@ -14,7 +14,7 @@ class OrbitMemberController < ApplicationController
|
||||
status << 'is_top'
|
||||
status << 'is_hot'
|
||||
status << 'is_hidden' unless is_guest?
|
||||
if @module_app.is_approvable && is_manager?
|
||||
if @module_app.is_approvable && (is_manager? || is_sub_manager?)
|
||||
status << 'is_pending'
|
||||
status << 'is_checked'
|
||||
status << 'is_rejected'
|
||||
|
||||
Reference in new issue
Block a user