Removed coupling with useless services in actions
This commit is contained in:
@@ -19,8 +19,7 @@ func (s *Server) AccessHandlerFn(c *fiber.Ctx) error {
|
||||
header := new(dto.AuthorizationHeaderDTO)
|
||||
c.ReqHeaderParser(header)
|
||||
|
||||
accessUI := ui.NewAccessActionUI(guardSrv, s.GetDatabase(), s.GetCache())
|
||||
if err := accessUI.Execute(header, url, srvName); err != nil {
|
||||
if err := ui.NewAccessActionUI(guardSrv).Execute(header, url, srvName); err != nil {
|
||||
return s.Error(c, fiber.StatusNotFound, err.Error())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user