فهرست منبع

doc(perms): improve docstrings

Mustafa Arici 8 سال پیش
والد
کامیت
0ec54061e3
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      perms.go

+ 2 - 2
perms.go

@@ -31,7 +31,7 @@ const (
 	DissociateNetworkUserPerm
 )
 
-// AdminPerms is a collection of permissions for Admin.
+// AdminPerms returns the list of permissions that admin type user has.
 func AdminPerms() []permset.Perm {
 	return []permset.Perm{
 		CreateUserPerm,
@@ -57,7 +57,7 @@ func AdminPerms() []permset.Perm {
 	}
 }
 
-// UserPerms is a collection of permissions for User.
+// UserPerms returns the collection of permissions that the regular users have.
 func UserPerms() []permset.Perm {
 	return []permset.Perm{
 		GetSelfPerm,