( 617, 'IMPORT_ON_ORDER_CAT_COPY', oils_i18n_gettext( 617,
'Allows users to import copies based on the on-order items attached to a record', 'ppl', 'description' )),
( 618, 'CREATE_PRECAT', oils_i18n_gettext(618,
- 'Allows a user to create a pre-catalogued copy', 'ppl', 'description'))
+ 'Allows a user to create a pre-catalogued copy', '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