import _ from 'lodash';
import React from 'react';
import Settings from '@folio/stripes-components/lib/Settings';

import PermissionSets from './permissions/PermissionSets';
import PatronGroupsSettings from './PatronGroupsSettings';
import AddressTypesSettings from './AddressTypesSettings';

const pages = [
  {
    route: 'perms',
    label: 'Permission sets',
    component: PermissionSets,
    perm: 'ui-users.editpermsets',
  },
  {
    route: 'groups',
    label: 'Patron groups',
    component: PatronGroupsSettings,
    // No perm needed yet
  },

  {
    route: 'addresstypes',
    label: 'Address Types',
    component: AddressTypesSettings,
    // No perm needed yet
  },
];

export default props => <Settings {...props} pages={_.sortBy(pages, ['label'])} paneTitle="Users" />;

@@ -523,35 +523,49 @@
 ,%0A    //
- No
  perm
- needed yet
+: 'settings.usergroups.all',
 %0A  %7D,%0A%0A 
@@ -669,27 +669,43 @@
   //
- No
  perm
- needed yet
+: 'settings.addresstypes.all',
 %0A  %7D

Add commented-out permission guards. Part of UIU-197.