apps/core/admin/admin.rb in spiderfw-0.6.27 vs apps/core/admin/admin.rb in spiderfw-0.6.28

- old
+ new

@@ -8,11 +8,11 @@ def self.register_app(mod, controller, options) @apps[mod.short_name] = { :module => mod, :controller => controller, - :options => options + :options => options || {} } Admin::AdminController.route mod.short_name, controller, :do => lambda{ |app_name| @scene.current_app = Spider::Admin.apps[app_name] } @@ -21,11 +21,15 @@ def self.allowed_users users = [] @apps.each do |name, app| users += app[:options][:users] if app[:options][:users] end - users << Spider::Auth::SuperUser + users += self.base_allowed_users users.uniq + end + + def self.base_allowed_users + [Spider::Auth::SuperUser] end end \ No newline at end of file