ntu_ga_subscription

This commit is contained in:
Manson Wang 2014-02-12 12:16:05 +08:00
parent 72d3fa428d
commit 5ce584a75a
2 changed files with 3 additions and 1 deletions

View File

@ -355,7 +355,7 @@ module OrbitBackendHelper
if object.is_a?(klass.constantize) if object.is_a?(klass.constantize)
autorized ||= object.user_can_sub_manage?(current_user) autorized ||= object.user_can_sub_manage?(current_user)
else else
autorized ||= object.send(klass.underscore).user_can_sub_manage?(current_user) autorized ||= object.send(klass.underscore).user_can_sub_manage?(current_user) rescue nil
end end
autorized autorized
end end

View File

@ -19,3 +19,5 @@ gem 'web_resource', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-web
gem 'ask', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-ask.git', :branch => 'ntu_ga' gem 'ask', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-ask.git', :branch => 'ntu_ga'
gem 'survey', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-survey.git', :branch => 'ntu_ga' gem 'survey', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-survey.git', :branch => 'ntu_ga'
gem 'archive', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-archive.git', :branch => 'ntu_ga' gem 'archive', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-archive.git', :branch => 'ntu_ga'
gem 'faq', '0.0.1', :git => "git@gitlab.tp.rulingcom.com:root/orbit-faq.git"
gem 'feed', '0.0.1', :git => 'git@gitlab.tp.rulingcom.com:root/orbit-feed.git'