From e86728340654b18a657a65920c16e28a1b00cca7 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 8 May 2014 12:24:11 -0400 Subject: Assignee back end --- models/access.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'models/access.go') diff --git a/models/access.go b/models/access.go index 749a2604d5..4f944517ed 100644 --- a/models/access.go +++ b/models/access.go @@ -58,9 +58,10 @@ func UpdateAccessWithSession(sess *xorm.Session, access *Access) error { } // HasAccess returns true if someone can read or write to given repository. -func HasAccess(userName, repoName string, mode int) (bool, error) { +// The repoName should be in format /. +func HasAccess(uname, repoName string, mode int) (bool, error) { access := &Access{ - UserName: strings.ToLower(userName), + UserName: strings.ToLower(uname), RepoName: strings.ToLower(repoName), } has, err := orm.Get(access) -- cgit v1.2.3