mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
remove unused
This commit is contained in:
1 parent
bb65a90cab
commit
f02a372c65
1 file changed
-12
@@ -367,15 +367,3 @@ func (ctx *APIContext) IsUserRepoAdmin() bool {
|
|||||||
func (ctx *APIContext) IsUserRepoWriter(unitTypes []unit.Type) bool {
|
func (ctx *APIContext) IsUserRepoWriter(unitTypes []unit.Type) bool {
|
||||||
return slices.ContainsFunc(unitTypes, ctx.Repo.CanWrite)
|
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
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user