Просмотр исходного кода

Allow user's group to be overriden in wordpress

This breaks the use case where a Cloudron user becomes
a Cloudron admin and this information is not propagated
to wordpress. For now, this has to be re-set manually
inside wordpress. Maybe this can be solved someday using
a "sync" task from the cloudron side for all apps.

Fixes #13
Girish Ramakrishnan 8 лет назад
Родитель
Сommit
3f983628b4
3 измененных файлов с 8 добавлено и 1 удалено
  1. 3 0
      CHANGELOG
  2. 4 0
      POSTINSTALL.md
  3. 1 1
      start.sh

+ 3 - 0
CHANGELOG

@@ -98,3 +98,6 @@
 * Update authLdap to 1.5.1
 * Update wordpress to 4.7.5
 
+[0.8.0]
+* Do not override user group if explicitly set inside wordpress
+

+ 4 - 0
POSTINSTALL.md

@@ -9,4 +9,8 @@ password: `changeme`
 <sso>
 Cloudron adminstrators are automatically made WordPress administrators.
 Non-administrators get the `editor` role by default.
+
+Note that any changes to the Cloudron admin status are _not_ carried over
+to Wordpress. You must change the user's role in Wordpress admin panel
+manually.
 </sso>

+ 1 - 1
start.sh

@@ -125,7 +125,7 @@ if [[ -n "${LDAP_SERVER:-}" ]]; then
         "GroupFilter"   : "(|(mail=%1\$s)(username=%1\$s))",
         "DefaultRole"   : "editor",
         "GroupEnable"   : true,
-        "GroupOverUser" : true,
+        "GroupOverUser" : false,
         "Version"       : 1
     }
 EOF