Compare commits

...

1 Commits
master ... ntue

Author SHA1 Message Date
spen 8af795e2ac fix backend edit authorized 2014-05-08 10:46:08 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -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