[webui] Fix repository flag table access check.
authorSascha Peilicke <saschpe@suse.de>
Wed, 24 Aug 2011 09:04:14 +0000 (11:04 +0200)
committerSascha Peilicke <saschpe@suse.de>
Wed, 24 Aug 2011 09:04:14 +0000 (11:04 +0200)
commit4535ac60cc56b6708a6f2499390a49c2d1e0b920
treec861e99574cdd0c017c2b02a1b4c6034e4b2b002
parentd959eb7aa1938ac5c798eb20f3b0af9404f9f32b
[webui] Fix repository flag table access check.

The value of @user_is_maintainer is nil during Ajax requests, as they
don't go through the 'repositories' action of either Project or Package
controller. Thus we have to redo the check each time...
src/webui/app/controllers/package_controller.rb
src/webui/app/controllers/project_controller.rb
src/webui/app/helpers/application_helper.rb