mirror of
https://github.com/openziti/zrok.git
synced 2025-06-30 14:30:30 +02:00
access handler block (#432)
This commit is contained in:
@ -57,6 +57,11 @@ func (h *accessHandler) Handle(params share.AccessParams, principal *rest_model_
|
||||
return share.NewAccessNotFound()
|
||||
}
|
||||
|
||||
if shr.PermissionMode != store.OpenPermissionMode {
|
||||
logrus.Errorf("closed permission mode selected")
|
||||
return share.NewAccessNotFound()
|
||||
}
|
||||
|
||||
if err := h.checkLimits(shr, trx); err != nil {
|
||||
logrus.Errorf("cannot access limited share for '%v': %v", principal.Email, err)
|
||||
return share.NewAccessNotFound()
|
||||
|
Reference in New Issue
Block a user