( 609, 'MANAGE_CUSTOM_PERM_GRP_TREE', oils_i18n_gettext( 609,
'Allows a user to manage custom permission group lists.', 'ppl', 'description' )),
( 610, 'CLEAR_PURCHASE_REQUEST', oils_i18n_gettext(610,
- 'Clear Completed User Purchase Requests', 'ppl', 'description'))
+ 'Clear Completed User Purchase Requests', 'ppl', 'description')),
+ ( 619, 'EDIT_SELF_IN_CLIENT', oils_i18n_gettext(619,
+ 'Allow a user to edit their own account in the staff client', 'ppl', 'description'))
;
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES
+( 619, 'EDIT_SELF_IN_CLIENT', oils_i18n_gettext(619,
+ 'Allow a user to edit their own account in the staff client', 'ppl', 'description'))
+;
+
+COMMIT;
service.has_perms_for_org = function(org_id) {
var perms_needed = [
+ 'EDIT_SELF_IN_CLIENT',
'UPDATE_USER',
'CREATE_USER',
'CREATE_USER_GROUP_LINK',
$scope.edit_passthru.hide_save_actions = function() {
if ($scope.patron.id
&& $scope.patron.id == egCore.auth.user().id()
+ && !$scope.perms.EDIT_SELF_IN_CLIENT
) return true;
if ( $scope.patron.profile