You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
: thrownew \LogicException('Unable to use expressions as the Symfony ExpressionLanguage component is not installed. Try running "composer require symfony/expression-language".')
@@ -257,8 +257,8 @@ public function getAccessDeniedMessageTests()
257
257
yield [['ROLE_ADMIN'], null, 'admin', 'Access Denied by #[IsGranted("ROLE_ADMIN")] on controller'];
258
258
yield [['ROLE_ADMIN', 'ROLE_USER'], null, 'adminOrUser', 'Access Denied by #[IsGranted(["ROLE_ADMIN", "ROLE_USER"])] on controller'];
259
259
yield [['ROLE_ADMIN', 'ROLE_USER'], 'product', 'adminOrUserWithSubject', 'Access Denied by #[IsGranted(["ROLE_ADMIN", "ROLE_USER"], "product")] on controller'];
260
-
yield [['"ROLE_ADMIN" in role_names or is_granted("POST_VIEW", subject)'], 'post', 'withExpressionInAttribute', 'Access Denied by #[IsGranted(""ROLE_ADMIN" in role_names or is_granted("POST_VIEW", subject)", "post")] on controller'];
261
-
yield [['user === subject'], 'post', 'withExpressionInSubject', 'Access Denied by #[IsGranted("user === subject", "args["post"].getAuthor()")] on controller'];
260
+
yield [[newExpression('"ROLE_ADMIN" in role_names or is_granted("POST_VIEW", subject)')], 'post', 'withExpressionInAttribute', 'Access Denied by #[IsGranted(""ROLE_ADMIN" in role_names or is_granted("POST_VIEW", subject)", "post")] on controller'];
261
+
yield [[newExpression('user === subject')], 'post', 'withExpressionInSubject', 'Access Denied by #[IsGranted("user === subject", "args["post"].getAuthor()")] on controller'];
0 commit comments