File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,21 @@ type User struct {
131131 // Maximum repository creation limit, -1 means use global default
132132 MaxRepoCreation int `xorm:"NOT NULL DEFAULT -1"`
133133
134- // Permissions
135- IsActive bool `xorm:"INDEX"` // Activate primary email
136- IsAdmin bool
137- IsRestricted bool `xorm:"NOT NULL DEFAULT false"`
134+ // IsActive true: primary email is activated, user can access Web UI and Git SSH.
135+ // false: an inactive user can only log in Web UI for account operations (ex: activate the account by email), no other access.
136+ IsActive bool `xorm:"INDEX"`
137+ // the user is a Gitea admin, who can access all repositories and the admin pages.
138+ IsAdmin bool
139+ // true: the user is only allowed to see organizations/repositories that they has explicit rights to.
140+ // (ex: in private Gitea instances user won't be allowed to see even organizations/repositories that are set as public)
141+ IsRestricted bool `xorm:"NOT NULL DEFAULT false"`
142+
138143 AllowGitHook bool
139144 AllowImportLocal bool // Allow migrate repository by local path
140145 AllowCreateOrganization bool `xorm:"DEFAULT true"`
141- ProhibitLogin bool `xorm:"NOT NULL DEFAULT false"`
146+
147+ // true: the user is not allowed to log in Web UI. Git/SSH access could still be allowed (please refer to Git/SSH access related code/documents)
148+ ProhibitLogin bool `xorm:"NOT NULL DEFAULT false"`
142149
143150 // Avatar
144151 Avatar string `xorm:"VARCHAR(2048) NOT NULL"`
You can’t perform that action at this time.
0 commit comments