Enhance user role checks to include 'direktor' permissions across various components, including product relations, global order resource actions, and authentication gates.
This commit is contained in:
1 parent
53a8e0634e
commit
b52b567388
5 files changed
+135
-8
No files matched your search
@@ -0,0 +1,120 @@
|
|||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787409331}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787409345}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787409359}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787409383}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787409876}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787410135}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787427933}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787427948}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787427962}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787427986}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787428559}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787428567}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787428648}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787428807}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787428816}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787430199}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787430216}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787430231}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787430257}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787430885}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787430886}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787430887}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787431281}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787433339}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787433353}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787433367}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787433390}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787433700}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787433701}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787433706}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787433919}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787433919}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787433920}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787434027}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787434028}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787434030}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787434113}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787434114}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787434115}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787435476}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787435490}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787435504}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787435530}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787436164}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787436174}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787436249}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787437352}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787437369}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787437387}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787437416}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787437872}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787437875}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787438082}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787438083}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787438099}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787438099}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787438726}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787438741}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787438755}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787438781}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787439399}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787439569}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787439845}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787439863}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787439879}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787439912}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787440502}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H1","location":"AuthServiceProvider.php:systemUser","message":"systemUser gate evaluated","data":{"userId":3,"roles":["direktor"],"systemUser":true,"isDirektor":true},"timestamp":1786787440509}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787440597}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787450327}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787450341}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787450355}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787450379}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787450876}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787451037}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787451580}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787451602}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787451620}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787451653}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787452006}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H3","location":"NovaProductRepository.php:inventoryDependsOn","message":"inventory options branch","data":{"userId":3,"isAdmin":false,"isDirektor":true,"isEntrepreneur":false,"optionsFilled":true},"timestamp":1786787452010}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787452204}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H3","location":"NovaProductRepository.php:inventoryDependsOn","message":"inventory options branch","data":{"userId":3,"isAdmin":false,"isDirektor":true,"isEntrepreneur":false,"optionsFilled":true},"timestamp":1786787452212}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787458722}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787458776}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787467374}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787467586}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787467746}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787505406}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H3","location":"NovaProductRepository.php:inventoryDependsOn","message":"inventory options branch","data":{"userId":3,"isAdmin":false,"isDirektor":true,"isEntrepreneur":false,"optionsFilled":true},"timestamp":1786787505412}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787505437}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H3","location":"NovaProductRepository.php:inventoryDependsOn","message":"inventory options branch","data":{"userId":3,"isAdmin":false,"isDirektor":true,"isEntrepreneur":false,"optionsFilled":true},"timestamp":1786787505442}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787523788}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H3","location":"NovaProductRepository.php:inventoryDependsOn","message":"inventory options branch","data":{"userId":3,"isAdmin":false,"isDirektor":true,"isEntrepreneur":false,"optionsFilled":true},"timestamp":1786787523794}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787523816}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H3","location":"NovaProductRepository.php:inventoryDependsOn","message":"inventory options branch","data":{"userId":3,"isAdmin":false,"isDirektor":true,"isEntrepreneur":false,"optionsFilled":true},"timestamp":1786787523820}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787524867}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787524883}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787524899}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787524926}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787525229}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787525252}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787525278}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787525337}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787525390}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787525410}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787525426}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787525448}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787525603}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787525604}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787548796}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787548814}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787548833}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787548861}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787548887}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787548904}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787548918}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"GlobalOrderResource.php:authorizedToViewAny","message":"global orders viewAny","data":{"userId":3,"isAdmin":false,"isDirektor":true,"allowed":true},"timestamp":1786787548941}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787549709}
|
||||||
|
{"sessionId":"6d4d12","runId":"post-fix","hypothesisId":"H2","location":"AuthServiceProvider.php:isAdmin","message":"isAdmin gate evaluated","data":{"userId":3,"roles":["direktor"],"isAdmin":false,"isDirektor":true,"gateAllowed":true},"timestamp":1786787549709}
|
||||||
@@ -40,7 +40,7 @@ public function handle(): void
|
|||||||
$this->model->collections()->sync($this->collections);
|
$this->model->collections()->sync($this->collections);
|
||||||
$this->model->inventories()->sync($this->inventories);
|
$this->model->inventories()->sync($this->inventories);
|
||||||
|
|
||||||
if ($this->user->isAdmin()) {
|
if ($this->user->isAdmin() || $this->user->isDirektor()) {
|
||||||
$this->model->channels()->sync($this->channel);
|
$this->model->channels()->sync($this->channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -165,7 +165,9 @@ public function actions(NovaRequest $request)
|
|||||||
*/
|
*/
|
||||||
public static function authorizedToViewAny(Request $request)
|
public static function authorizedToViewAny(Request $request)
|
||||||
{
|
{
|
||||||
return auth()->user() && auth()->user()->isAdmin();
|
$user = auth()->user();
|
||||||
|
|
||||||
|
return $user && ($user->isAdmin() || $user->isDirektor());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -175,8 +177,9 @@ public static function authorizedToViewAny(Request $request)
|
|||||||
*/
|
*/
|
||||||
public function authorizedToView(Request $request)
|
public function authorizedToView(Request $request)
|
||||||
{
|
{
|
||||||
|
$user = auth()->user();
|
||||||
|
|
||||||
return auth()->user() && auth()->user()->isAdmin();
|
return $user && ($user->isAdmin() || $user->isDirektor());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -186,7 +189,9 @@ public function authorizedToView(Request $request)
|
|||||||
*/
|
*/
|
||||||
public static function authorizedToCreate(Request $request)
|
public static function authorizedToCreate(Request $request)
|
||||||
{
|
{
|
||||||
return auth()->user() && auth()->user()->isAdmin();
|
$user = auth()->user();
|
||||||
|
|
||||||
|
return $user && ($user->isAdmin() || $user->isDirektor());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -194,7 +199,9 @@ public static function authorizedToCreate(Request $request)
|
|||||||
*/
|
*/
|
||||||
public function authorizedToUpdate(Request $request): bool
|
public function authorizedToUpdate(Request $request): bool
|
||||||
{
|
{
|
||||||
return auth()->user() && auth()->user()->isAdmin();
|
$user = auth()->user();
|
||||||
|
|
||||||
|
return $user && ($user->isAdmin() || $user->isDirektor());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -141,8 +141,8 @@ class AuthServiceProvider extends ServiceProvider
|
|||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
Gate::define('isMe', fn ($user) => $user->isMe());
|
Gate::define('isMe', fn ($user) => $user->isMe());
|
||||||
Gate::define('isAdmin', fn ($user) => $user->isAdmin());
|
Gate::define('isAdmin', fn ($user) => $user->isAdmin() || $user->isDirektor());
|
||||||
Gate::define('systemUser', fn ($user) => $user->isMe() || $user->hasRole(['admin', 'manager']));
|
Gate::define('systemUser', fn ($user) => $user->isMe() || $user->hasRole(['admin', 'manager', 'direktor']));
|
||||||
Gate::define('vendor', fn ($user) => $user->hasRole('vendor'));
|
Gate::define('vendor', fn ($user) => $user->hasRole('vendor'));
|
||||||
Gate::define('isVendor', fn ($user) => $user->hasRole('vendor'));
|
Gate::define('isVendor', fn ($user) => $user->hasRole('vendor'));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public static function inventoryDependsOn(string $resource_attribute): Closure
|
|||||||
})->pluck('name', 'id'));
|
})->pluck('name', 'id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->isAdmin()) {
|
if ($user->isAdmin() || $user->isDirektor()) {
|
||||||
$field->options(Inventory::pluck('name', 'id'));
|
$field->options(Inventory::pluck('name', 'id'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user