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.118 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started