Commit fc583418 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5397 Use a separate ACL for account locking

parent e0dc4f50
......@@ -143,7 +143,7 @@ class userManagement extends simpleManagement
$disallowed = array();
$allowed = array();
foreach ($entry as $dn) {
if (!preg_match('/w/', $ui->get_permissions($dn, 'user/user', 'userPassword'))) {
if (!preg_match('/w/', $ui->get_permissions($dn, 'user/user', 'userLock'))) {
$disallowed[] = $dn;
} else {
$allowed[] = $dn;
......
......@@ -293,7 +293,10 @@ class user extends simplePlugin
'manager' => array('user','dn')
),
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
'plProvidedAcls' => array_merge(
parent::generatePlProvidedAcls(static::getAttributesInfo()),
array('userLock' => _('User lock status'))
)
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment