Permalink
Browse files

authorized takes a user, not a username

  • Loading branch information...
1 parent 35c8e81 commit 8fc922c3d698c330121bd986e123d2c14fb845da @icefox committed Jun 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/app/models/repository.rb
View
2 web/app/models/repository.rb
@@ -38,7 +38,7 @@ def location
end
def public
- return authorized(I18n.t('user.all'))
+ return authorized(User.find_by_username(I18n.t('user.all')))
end
def copy(other)

0 comments on commit 8fc922c

Please sign in to comment.