package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

AccessLevel returns the Access a user has to a repository.
AccessLevelUnit returns the Access a user has to a repository's.
CanBeAssigned return true if user can be assigned to issue or pull requests in repo Currently any write access (code, issues or pr's) is assignable, to match assignee list in user interface.
CheckRepoUnitUser check whether user could visit the unit of this repository.
GetRepoReaders returns all users that have explicit read access or higher to the repository.
GetRepoWriters returns all users that have write access to the repository.
GetUserRepoPermission returns the user permissions to the repository.
HasAccessUnit returns true if user has testMode to the unit of the repository.
HasAnyUnitAccess see the comment of "perm.HasAnyUnitAccess".
IsRepoReader returns true if user has explicit read access or higher to the repository.
IsUserRealRepoAdmin check if this user is real repo admin.
IsUserRepoAdmin return true if user has admin right of a repo.
RecalculateAccesses recalculates all accesses for repository.
RecalculateTeamAccesses recalculates new accesses for teams of an organization except the team whose ID is given.
RecalculateUserAccess recalculates new access for a single user Usable if we know access only affected one user.

# Structs

Access represents the highest access level of a user to the repository.
Permission contains all the permissions related variables to a repository for a user.