fix backend edit authorized
This commit is contained in:
parent
34a13479d4
commit
8af795e2ac
|
@ -92,7 +92,7 @@ class Panel::ErEmail::BackEnd::EmailErsController < OrbitBackendController
|
||||||
|
|
||||||
is_authorized_sub_manager = @email_er.category.auth_sub_manager.authorized_user_ids rescue nil
|
is_authorized_sub_manager = @email_er.category.auth_sub_manager.authorized_user_ids rescue nil
|
||||||
|
|
||||||
if !(is_manager? || is_admin? || is_authorized_sub_manager.include?(current_user.id))
|
if !(is_manager? || is_admin? || (is_authorized_sub_manager.include?(current_user.id) and @email_er.create_user_id == current_user.id))
|
||||||
redirect_to :action => :index
|
redirect_to :action => :index
|
||||||
else
|
else
|
||||||
# @summary_variable = @bulletin.summary_variable
|
# @summary_variable = @bulletin.summary_variable
|
||||||
|
|
Loading…
Reference in New Issue