3 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
5 INSERT into config.org_unit_setting_type
6 (name, grp, label, description, datatype)
8 'ui.patron.edit.au.photo_url.require',
11 'ui.patron.edit.au.photo_url.require',
12 'Require Photo URL field on patron registration',
17 'ui.patron.edit.au.photo_url.require',
18 'The Photo URL field will be required on the patron registration screen.',
25 INSERT into config.org_unit_setting_type
26 (name, grp, label, description, datatype)
28 'ui.patron.edit.au.photo_url.show',
31 'ui.patron.edit.au.photo_url.show',
32 'Show Photo URL field on patron registration',
37 'ui.patron.edit.au.photo_url.show',
38 'The Photo URL field will be shown on the patron registration screen. Showing a field makes it appear with required fields even when not required. If the field is required this setting is ignored.',
45 INSERT into config.org_unit_setting_type
46 (name, grp, label, description, datatype)
48 'ui.patron.edit.au.photo_url.suggest',
51 'ui.patron.edit.au.photo_url.suggest',
52 'Suggest Photo URL field on patron registration',
58 'ui.patron.edit.au.photo_url.suggest',
59 'The Photo URL field will be suggested on the patron registration screen. Suggesting a field makes it appear when suggested fields are shown. If the field is shown or required this setting is ignored.',
66 INSERT INTO permission.perm_list ( id, code, description ) VALUES
67 ( 632, 'UPDATE_USER_PHOTO_URL', oils_i18n_gettext( 632,
68 'Update the user photo url field in patron registration and editor', 'ppl', 'description' ))
71 INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
73 pgt.id, perm.id, aout.depth, FALSE
75 permission.grp_tree pgt,
76 permission.perm_list perm,
77 actor.org_unit_type aout
79 pgt.name = 'Circulators' AND
80 aout.name = 'System' AND
81 perm.code = 'UPDATE_USER_PHOTO_URL'