#349: updated Users::ProfileController and Groups::ProfileController
This commit is contained in:
parent
226f1b592c
commit
ffe38b0a08
|
@ -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
|
||||
|
||||
|
|
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue