Skip to content

Commit

Permalink
[ACL] [com_fields fields view] Correct when display batch button (#12826
Browse files Browse the repository at this point in the history
)

* Update view.html.php

* Update default.php
  • Loading branch information
andrepereiradasilva authored and rdeutz committed Nov 15, 2016
1 parent 8bc8984 commit 4c8344d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@
</tbody>
</table>
<?php //Load the batch processing form. ?>
<?php if ($user->authorise('core.create', $context)
&& $user->authorise('core.edit', $context)
&& $user->authorise('core.edit.state', $context)) : ?>
<?php if ($user->authorise('core.create', $this->component)
&& $user->authorise('core.edit', $this->component)
&& $user->authorise('core.edit.state', $this->component)) : ?>
<?php echo JHtml::_(
'bootstrap.renderModal',
'collapseModal',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ protected function addToolbar()
}

// Add a batch button
if ($user->authorise('core.create', $this->context) && $user->authorise('core.edit', $this->context)
&& $user->authorise('core.edit.state', $this->context))
if ($canDo->get('core.create') && $canDo->get('core.edit') && $canDo->get('core.edit.state'))
{
$title = JText::_('JTOOLBAR_BATCH');

Expand Down

0 comments on commit 4c8344d

Please sign in to comment.