Welcome, Guest
Username: Password: Remember me

TOPIC: Limiting access to VIEW TOOL bar without a Model

Limiting access to VIEW TOOL bar without a Model 05 Dec 2012 15:10 #5854

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
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
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

Re: Limiting access to VIEW TOOL bar without a Model 05 Dec 2012 15:14 #5855

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
sigh

core.admin

I am a fool ;) basic Joomla ACL stuff..
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

Re: Limiting access to VIEW TOOL bar without a Model 07 Dec 2012 19:09 #5905

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
No problem.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.053 seconds

Get Started