mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-01-13 16:12:57 +00:00
Merge pull request #71 from zero-24/core.options
Adding core.options to weblinks
This commit is contained in:
commit
f9a0aec0d0
@ -2,6 +2,7 @@
|
||||
<access component="com_weblinks">
|
||||
<section name="component">
|
||||
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
|
||||
<action name="core.options" title="JACTION_OPTIONS" description="JACTION_OPTIONS_COMPONENT_DESC" />
|
||||
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
|
||||
<action name="core.create" title="JACTION_CREATE" description="JACTION_CREATE_COMPONENT_DESC" />
|
||||
<action name="core.delete" title="JACTION_DELETE" description="JACTION_DELETE_COMPONENT_DESC" />
|
||||
@ -16,4 +17,4 @@
|
||||
<action name="core.edit.state" title="JACTION_EDITSTATE" description="COM_CATEGORIES_ACCESS_EDITSTATE_DESC" />
|
||||
<action name="core.edit.own" title="JACTION_EDITOWN" description="COM_CATEGORIES_ACCESS_EDITOWN_DESC" />
|
||||
</section>
|
||||
</access>
|
||||
</access>
|
||||
|
@ -107,7 +107,7 @@ class WeblinksViewWeblinks extends JViewLegacy
|
||||
$bar->appendButton('Custom', $dhtml, 'batch');
|
||||
}
|
||||
|
||||
if ($user->authorise('core.admin', 'com_weblinks'))
|
||||
if ($user->authorise('core.admin', 'com_weblinks') || $user->authorise('core.options', 'com_weblinks'))
|
||||
{
|
||||
JToolbarHelper::preferences('com_weblinks');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user