SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 437 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"


Joomla! always attempts to transfer menu item permissions to the related menu item
content; however, the solution is not infallible and must not be relied upon. The best
way to deal with this is to add support for permissions in our extensions. The next
section describes how to do this. We should also try to make administrators aware of
the true meaning of the menu item access level.
In cases where Joomla! determines that something should not be accessible to a user,
because of menu item access, Joomla! will return a 403 (Access Denied) error code.
Extension Access Control
Imagine we have a component called myExtension and we want to grant super
administrator's access to 'manage'. This example gives permission to ARO group
users > super administrator to ACO com_myExtension > manage.
$acl =& JFactory::getACL();
$acl->_mos_add_acl('com_myExtension', 'manage', 'users', 'super
administrator');
Whenever we want to add permissions we have to use the above mechanism because
currently only these ARO tables are implemented in Joomla!.


Pages:
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6