New role for user administration doesn't show sites listNew role for user administration doesn't show sites listhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1057891562024-03-28T09:09:26Z2024-03-28T09:09:26ZRE: New role for user administration doesn't show sites listDenis Cucchiettihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1099719112018-06-14T08:22:13Z2018-06-14T08:22:13Z<html><head></head><body>Hi Olaf,<br>Yes i did it yesterday :-).<br><br>For your information, below the ticket opened :<br><br> Steps to reproduce:<br><br>With default Liferay Administrator:<br>Step 1: Create a new Role "Administrateur Connext"<br>Step 2: Add ALL permissions to the created role (all permissions on site, user, role…)<br>Step 3: Create a new user and assign the role "Administrateur Connext" to the user and the current site<br>Result: the displayed dialog when you select a site is not empty.<br><br><br>With the new admin user created above:<br>Step 4: Log in with the new admin user<br>Step 5: Create a new user, click on button « select » to select a site for the new user<br>Result: In the displayed dialog, the list of sites is empty, even with all permissions associated with the signed in user.<br><br><br>Diagnostic:<br>The problem is in class "com.liferay.site.browser.web.internal.display.context.SiteBrowserDisplayContext" method "private List<Group> _filterGroups(List<Group> groups, PermissionChecker permissionChecker)":<br><br><pre><code>
private List<group> _filterGroups(
List<group> groups, PermissionChecker permissionChecker)
throws Exception {
List<group> filteredGroups = new ArrayList();
for (Group group : groups) {
if (permissionChecker.isGroupAdmin(group.getGroupId())) {
filteredGroups.add(group);
}
}
return filteredGroups;
}
</group></group></group></code></pre><br><br>Condition permissionChecker.isGroupAdmin(group.getGroupId())) returns false with the custom admin user (with the new role), but returns true with the default administrator.<br><br>The only way to make it works is to add the site role "Site Administrator" to my custom admin user. If I add this site role to my custom admin user with role "Administrateur Connext", the list of sites is fully displayed.</body></html>Denis Cucchietti2018-06-14T08:22:13ZRE: New role for user administration doesn't show sites listOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1099353852018-06-13T16:21:56Z2018-06-13T16:21:56Z<div class="quote-title">Denis Cucchietti:</div><blockquote>I have the same problem with DXP SP6</blockquote><br /><br />With DXP you're in the luxurious situation that you just need to open a support ticket. Did you already do this? This way you don't need to spend the time to search for workarounds to such an issue, but can rather get it fixed once and for all.<br /><br />I'm wondering if anybody else of the previous posters has at least filed an issue. But even if they have - it'd be enough for you to open your ticket and the support staff will find it if it existed.Olaf Kock2018-06-13T16:21:56ZRE: New role for user administration doesn't show sites listDenis Cucchiettihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1099203342018-06-13T13:38:01Z2018-06-13T13:38:01ZI have the same problem with DXP SP6, i have a new role with ALL permissions but i can't assign a site to a user from the edit user menu (but from the site menu it's ok)<br />Have you find a solution ?Denis Cucchietti2018-06-13T13:38:01ZRE: New role for user administration doesn't show sites listMigue MBhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1058079332018-03-26T07:40:14Z2018-03-26T07:40:14ZWe upgrade from GA3 to GA4 on the same DB.<br />Is very strange, but admin user can see sites list where the new rola can't.<br /><br />Best regards,<br />MAMigue MB2018-03-26T07:40:14ZRE: New role for user administration doesn't show sites listSushil Patidarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1058087642018-03-26T07:12:18Z2018-03-26T07:12:18Z<blockquote>When I access to liferay with the new role, the site appears in the left hand (control panel -> sites -> sites), and no errors in console when I click Select button in user form.<br /></blockquote><br />That make sure that permissions are right but there is issue in sites list box. Have you upgraded from GA3 to GA4 on the same DB.<br />Is sites list is blank for admin also?<br /><br />RegardsSushil Patidar2018-03-26T07:12:18ZRE: New role for user administration doesn't show sites listMigue MBhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1058075232018-03-26T06:22:36Z2018-03-26T06:22:36ZThanks for you response Sushil.<br /><br />When I access to liferay with the new role, the site appears in the left hand (control panel -> sites -> sites), and no errors in console when I click Select button in user form.<br /><br />Best regards,<br />MAMigue MB2018-03-26T06:22:36ZRE: New role for user administration doesn't show sites listSushil Patidarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1058029812018-03-26T04:54:57Z2018-03-26T04:54:57ZHi,<br /><br />Any error in the console when yo get list empty? and Do site appears in the left hand side product menu?<br /><br />RegardsSushil Patidar2018-03-26T04:54:57ZNew role for user administration doesn't show sites listMigue MBhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1057891552018-03-25T09:46:29Z2018-03-25T09:46:29ZHi all:<br /><br />I'm using Liferay 7.0 GA 4 and I have created a role to user administration. I define all user permissions and sites permission to the new role. <br />When I create a user and assign it to the new role I can create user, update it, assign roles,... all except assign a site from the user update form. <br /&g