You did not say where you want to add your code: frontend or backend, display or edit. Anyway, try this where you want to modify your code:
It will show bool(true) if admin access is allowed.
The rest of your code does not mean anything to me!
Code:
<?php var_dump($this->canDo->get('core.admin')); ?>
The rest of your code does not mean anything to me!
Statistics: Posted by ceford — Thu Jul 04, 2024 2:30 am