0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-09 13:33:54 +01:00

remove unused

This commit is contained in:
Norbert Szulc 2025-08-30 14:13:36 +00:00
parent bb65a90cab
commit f02a372c65

View File

@ -367,15 +367,3 @@ func (ctx *APIContext) IsUserRepoAdmin() bool {
func (ctx *APIContext) IsUserRepoWriter(unitTypes []unit.Type) bool {
return slices.ContainsFunc(unitTypes, ctx.Repo.CanWrite)
}
// IsUserRepoWriter returns true if current user has write commit status privilege in current repo
func (ctx *APIContext) IsUserCommitStatusWriter(unitTypes []unit.Type) bool {
for _, unitType := range unitTypes {
// TODO
if ctx.Repo.CanWrite(unitType) {
return true
}
}
return false
}