From: Raphaël Barrois Date: Tue, 23 Aug 2011 22:58:42 +0000 (+0200) Subject: Add the 'user' perm to all valid account types. X-Git-Tag: xorg/1.1.3~12 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d43f7f9521e4a4207fb0acda796011baacd3e97e;p=platal.git Add the 'user' perm to all valid account types. Signed-off-by: Raphaël Barrois --- diff --git a/upgrade/1.1.3/04_accounts.sql b/upgrade/1.1.3/04_accounts.sql new file mode 100644 index 0000000..b0b4273 --- /dev/null +++ b/upgrade/1.1.3/04_accounts.sql @@ -0,0 +1,4 @@ +ALTER TABLE account_types +CHANGE perms perms SET('groups','mail','directory_ax','directory_private','edit_directory','forums','lists','payment','api_user_readonly','gapps', 'user') NOT NULL DEFAULT ''; + +UPDATE account_types SET perms = CONCAT(perms, ',user') WHERE type IN ('ax', 'fx', 'master', 'phd', 'pi', 'school', 'x');