I have a view with no model and want to limit access to the CONFIG to admin only
The VIEW.HTML file normally looks like
if ($model->canAdmin())
JToolBarHelper::preferences('com_traindefectlogger');
easy enough when you have a model however.. i dont.. so I tried to mimic what we use in a grid layout, i.e
<?php if ($this->canDo->get('core.edit.state') || $this->canDo->get('core.view.own')): ?>
I am trying to guess what (core.view.own) or equivalent is the same as canAdmin
I have tried core.admin, core.configure, core.config and not happening. Probably very basic