This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2011-12-20 08:47:17 +00:00
|
|
|
class Admin::AppAuthsController < ApplicationController
|
|
|
|
layout "admin"
|
|
|
|
before_filter :authenticate_user!
|
|
|
|
before_filter :is_admin?
|
|
|
|
|
|
|
|
def index
|
2012-01-05 08:20:51 +00:00
|
|
|
@roles = Role.all.entries
|
2011-12-20 08:47:17 +00:00
|
|
|
apps = Purchase.where(:type =>"App")
|
|
|
|
@app_auth_data = apps.entries.map do |app|
|
|
|
|
app_c = eval(app.app_controller)
|
|
|
|
obj = app_c.new
|
|
|
|
obj_auth = obj.send "auth"
|
|
|
|
[:app_obj => app,:auth_field => obj_auth]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|