Add the 'user' perm to all valid account types.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 23 Aug 2011 22:58:42 +0000 (00:58 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Thu, 8 Sep 2011 23:14:46 +0000 (01:14 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
upgrade/1.1.3/04_accounts.sql [new file with mode: 0644]

diff --git a/upgrade/1.1.3/04_accounts.sql b/upgrade/1.1.3/04_accounts.sql
new file mode 100644 (file)
index 0000000..b0b4273
--- /dev/null
@@ -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');