Merge branch 'development' of gitlab.tp.rulingcom.com:saurabh/orbit4-5

This commit is contained in:
Harry Bomrah 2015-01-12 12:20:52 +05:30
commit 4fd0e2d315
1 changed files with 3 additions and 3 deletions

View File

@ -22,10 +22,10 @@ module OrbitApp
end end
def check_module_permissions def check_module_permissions
store_token = Site.first.store_token store_token = Site.first.store_token rescue nil
module_apps = ModuleApp.all
exceptions = OrbitStore::MODULE_EXCEPTIONS
if !store_token.nil? if !store_token.nil?
module_apps = ModuleApp.all
exceptions = OrbitStore::MODULE_EXCEPTIONS
ids = [] ids = []
module_index = {} module_index = {}
module_apps.each do |ma| module_apps.each do |ma|