Skip to content

Commit 64a33f6

Browse files
Add comment on exported functions
1 parent f20cfd3 commit 64a33f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

models/org.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func (org *User) IsOrgMember(uid int64) (bool, error) {
2929
return IsOrganizationMember(org.ID, uid)
3030
}
3131

32+
// CanCreateOrgRepo returns true if given user can create repo in organization
3233
func (org *User) CanCreateOrgRepo(uid int64) (bool, error) {
3334
return CanCreateOrgRepo(org.ID, uid)
3435
}
@@ -340,6 +341,7 @@ func IsPublicMembership(orgID, uid int64) (bool, error) {
340341
Exist()
341342
}
342343

344+
// CanCreateOrgRepo returns true if user can create repo in organization
343345
func CanCreateOrgRepo(orgID, uid int64) (bool, error) {
344346
if owner, err := IsOrganizationOwner(orgID, uid); owner || err != nil {
345347
return owner, err

0 commit comments

Comments
 (0)