Skip to content

Conversation

@sanjivani1812
Copy link
Contributor

  1. src/administrator/includes/rbacl.php
    In this file, I have added array_intersect in check function, because when multiple client_id assign to a single user then only first client_id check. need to check all roles across the system.
  2. src/administrator/models/user.php
    In this file two changes needed
    2.a) In getTable table add table file
    2.b) In getAssociatedContentRole function contentId variable make optional and changed query result to get all role column result.

*
* @since 1.6
*/
public function getAuthorizedActions($agencyId = null, $userId = null, $roleId = null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are there hardcoded references to com_multiagency ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the variable name.

if (!empty($userRoleId))
{
$db = JFactory::getDBO();
$subInQuery = $db->getQuery(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sanjivani1812 Move the DB operations in the model

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thite-amol - getRoleByUser function having DB operation so I put there. Can please suggest a model name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants