chore: user permissions

This commit is contained in:
Noah Hsu
2022-06-29 18:03:12 +08:00
parent 3c7a2f78cf
commit d24e51bc86
11 changed files with 110 additions and 48 deletions

View File

@ -66,7 +66,7 @@ func whetherHide(user *model.User, meta *model.Meta, path string) bool {
if user.IsGuest() {
return true
}
return !user.IgnoreHide
return !user.CanSeeHides()
}
func hide(objs []model.Obj, meta *model.Meta) {