Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
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

Please Log in or Create an account to join the conversation.

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

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
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

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
No problem.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.108 seconds

The j-cook project is one of the best of its kind and it is nice that we all try to contribute in little ways to make life easy for each other.

vlemos (Forum)  

Get Started