NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
63 stars 20 forks source link

DokuWiki admin user has no admin permissions when username is not admin/administrator #6919

Closed mrmarkuz closed 1 month ago

mrmarkuz commented 1 month ago

Steps to reproduce

Expected behavior

localadmin has full admin permissions after login to DokuWiki

Actual behavior

localadmin just has common user permissions

Components

NS8 DokuWiki 1.0.3

See also

https://community.nethserver.org/t/dokuwiki-admin-user-has-no-admin-permissions-when-username-is-not-admin-administrator/23628

Proposed fix

Set \$conf['superuser'] = '@admin,@domain\ admins'; in DokuWiki config to allow internal admins and domain admins by group


Thanks to Denis Pollini for finding the bug.

stephdl commented 1 month ago

QA

test case 1 test the admin from LDAP can access to administrative page

test case 2 without ldap, test the admin can access to administrative page

stephdl commented 1 month ago

test 1 and test 2 verified

stephdl commented 1 month ago

released as 1.0.4