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.059 seconds

WOW.. WOW... WOW... This is awesome... in less than 3 hours of work I have my application done... this is simply the best tool I ever tried to generate Joomla Components... Thank you very much for this tool and your answer.. it helped me a lot... My friends here in Brazil are going nuts with this...
Griiettner (Forum)

Get Started