Skip to content

Commit

Permalink
Made focus mode disabled for clean installation admin user (#334)
Browse files Browse the repository at this point in the history
For more details #334

Key changes:

* Turned off "focus_mode" ibexa/admin-ui user preference for clean installation "admin" user.
  • Loading branch information
alongosz authored Feb 13, 2024
1 parent 8f01648 commit bc88c57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/mysql/cleandata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,6 @@ VALUES (11,28,'','',1),
INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`)
VALUES (1,1000,10),
(1,10,14);

INSERT INTO `ezpreferences` (`name`, `user_id`, `value`)
SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin';
3 changes: 3 additions & 0 deletions data/postgresql/cleandata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id")
VALUES (1, 1000, 10),
(1, 10, 14);

INSERT INTO "ezpreferences" ("name", "user_id", "value")
SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin';

-- Set proper sequence values after inserting data
SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group;
SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state;
Expand Down

0 comments on commit bc88c57

Please sign in to comment.