File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
code_samples/back_office/limitation/src/Controller Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 66use Ibexa \Contracts \AdminUi \Controller \Controller ;
77use Ibexa \Contracts \AdminUi \Permission \PermissionCheckerInterface ;
88use Ibexa \Contracts \Core \Repository \PermissionResolver ;
9+ use Ibexa \Contracts \User \Controller \AuthenticatedRememberedCheckTrait ;
910use Ibexa \Contracts \User \Controller \RestrictedControllerInterface ;
1011use Ibexa \Core \MVC \Symfony \Security \Authorization \Attribute ;
1112use Symfony \Component \HttpFoundation \Request ;
1213use Symfony \Component \HttpFoundation \Response ;
1314
1415class CustomController extends Controller implements RestrictedControllerInterface
1516{
17+ use AuthenticatedRememberedCheckTrait {
18+ AuthenticatedRememberedCheckTrait::performAccessCheck as public traitPerformAccessCheck;
19+ }
20+
1621 public function __construct (
1722 // ...,
1823 private readonly PermissionResolver $ permissionResolver ,
@@ -40,6 +45,7 @@ private function getCustomLimitationValue(): bool
4045
4146 public function performAccessCheck (): void
4247 {
48+ $ this ->traitPerformAccessCheck ();
4349 $ this ->denyAccessUnlessGranted (new Attribute ('custom_module ' , 'custom_function_2 ' ));
4450 }
4551}
You can’t perform that action at this time.
0 commit comments