#349: updated Users::ProfileController and Groups::ProfileController

This commit is contained in:
Vokhmin Alexey V 2012-10-02 16:04:26 +04:00
parent 226f1b592c
commit ffe38b0a08
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
# -*- encoding : utf-8 -*-
class Groups::ProfileController < Groups::BaseController
load_and_authorize_resource :class => Group, :instance_name => 'group'
load_and_authorize_resource :class => Group, :instance_name => 'group', :except => :show
load_resource :class => Group, :instance_name => 'group', :only => :show
skip_before_filter :authenticate_user!, :only => :show if APP_CONFIG['anonymous_access']
autocomplete :group, :uname

View File

@ -1,6 +1,7 @@
# -*- encoding : utf-8 -*-
class Users::ProfileController < Users::BaseController
autocomplete :user, :uname
skip_before_filter :authenticate_user!, :only => :show if APP_CONFIG['anonymous_access']
def show
@projects = @user.projects.by_visibilities(['open'])