Refactor user role permission checks to utilize a unified 'user' scope for access control. Update user management permissions in user.php and users.php for consistency. Enhance listPartner function to apply hierarchy-based restrictions for partner retrieval.
This commit is contained in:
@@ -133,8 +133,6 @@ $view .= '
|
||||
<th class="responsive-hidden">'.$User_service.'</th>
|
||||
<th>'.$User_username.'</th>
|
||||
<th>'.$User_partnerhierarchy.'</th>
|
||||
<th>'.$User_permission.'</th>
|
||||
<th>'.$User_profile.'</th>
|
||||
<th class="responsive-hidden">'.$User_lastlogin.'</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -164,8 +162,6 @@ $view .= '
|
||||
<td class="responsive-hidden">'.(($response->service && $response->service !='')? '<span class="status enabled">'.$enabled:'<span class="status">'.$disabled).'</td>
|
||||
<td>'.$response->username.'</td>
|
||||
<td>'.$partner_hierarchy.'</td>
|
||||
<td>'.$$permission_user.'</td>
|
||||
<td>'.$response->settings.'</td>
|
||||
<td class="responsive-hidden">'.getRelativeTime($response->lastlogin).'</td>
|
||||
</tr>
|
||||
';
|
||||
|
||||
Reference in New Issue
Block a user