apps/core/admin/admin.rb in spiderfw-0.6.26.pre1 vs apps/core/admin/admin.rb in spiderfw-0.6.26
- old
+ new
@@ -17,13 +17,14 @@
@scene.current_app = Spider::Admin.apps[app_name]
}
end
def self.allowed_users
- users = [Spider::Auth::SuperUser]
+ users = []
@apps.each do |name, app|
users += app[:options][:users] if app[:options][:users]
end
+ users << Spider::Auth::SuperUser
users.uniq
end
end
\ No newline at end of file