Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/administrator/includes/rbacl.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,10 @@ public static function check($userId, $client, $action, $contentId = null)
*/
public static function authorise($userId, $client, $action, $contentId = null)
{
$client = (string) $client;
$action = (string) $action;
$user = Factory::getUser($userId);
$result = $user->authorise($action, $client);

return $result && self::check($userId, $client, $action, $contentId);
return $result && self::check($userId, $client, $action);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/administrator/libraries/action.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function bind(&$array)
*
* @since __DEPLOY_VERSION__
*/
public static function loadActionByCode($code, $client)
public static function loadActionByCode(String $code, String $client)
{
$table = RBACL::table("action");
$table->load(array("code" => $code, "client" => $client));
Expand Down
2 changes: 0 additions & 2 deletions src/administrator/models/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ class SubusersModelUser extends AdminModel
*/
public function getTable($type = 'User', $prefix = 'SubusersTable', $config = array())
{
Table::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_subusers/tables');

return Table::getInstance($type, $prefix, $config);
}

Expand Down