Mailinglist Archive: opensuse-buildservice (216 mails)

< Previous Next >
[opensuse-buildservice] Re: [PATCH] hide some linkes in anonymous mode
  • From: Stephan Kulow <coolo@xxxxxxx>
  • Date: Fri, 19 Mar 2010 13:17:44 +0100
  • Message-id: <201003191317.44677.coolo@xxxxxxx>
Freitag 19 März 2010 sent OBS build:
--- a/src/webui/app/controllers/project_controller.rb
+++ b/src/webui/app/controllers/project_controller.rb
@@ -218,6 +218,7 @@ class ProjectController < ApplicationController
end

def repositories
+ @user ||= Person.find( :login => session[:login] )
end

#update project flags
@@ -717,7 +718,12 @@ class ProjectController < ApplicationController
render :partial => 'shared/rate'
end

+ def meta
+ @user ||= Person.find( :login => session[:login] )
+ end
+
def prjconf
+ @user ||= Person.find( :login => session[:login] )
end

def edit_prjconf

Hi,

Please use filters for such repeated actions.

Greetings, Stephan
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages