-- enable global flag for expired account login
update config.global_flag set enabled = true where name = 'auth.block_expired_staff_login';
+-- add ADMIN_STAFF_PORTAL_PAGE perm to appropriate groups
+insert into permission.grp_perm_map (grp, perm, depth, grantable) values
+((select id from permission.grp_tree where name = 'GlobalAdmin'), (select id from permission.perm_list where code = 'ADMIN_STAFF_PORTAL_PAGE'), 0, false),
+((select id from permission.grp_tree where name = 'LocalAdmin'), (select id from permission.perm_list where code = 'ADMIN_STAFF_PORTAL_PAGE'), 1, false);
+
+-- Item stat cats
+UPDATE asset.stat_cat SET opac_visible=false WHERE opac_visible=true;
+
+-- Patron stat cats
+UPDATE actor.stat_cat SET opac_visible=false WHERE opac_visible=true;
+
COMMIT;