user_sql-78 Hide "password change form"
Hide "password change form" when "Allow password change" not set
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
namespace OCA\UserSQL\Backend;
|
namespace OCA\UserSQL\Backend;
|
||||||
|
|
||||||
|
use OC\User\Backend;
|
||||||
use OCA\UserSQL\Action\EmailSync;
|
use OCA\UserSQL\Action\EmailSync;
|
||||||
use OCA\UserSQL\Action\IUserAction;
|
use OCA\UserSQL\Action\IUserAction;
|
||||||
use OCA\UserSQL\Action\QuotaSync;
|
use OCA\UserSQL\Action\QuotaSync;
|
||||||
@@ -642,4 +643,16 @@ final class UserBackend extends ABackend implements
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public function implementsActions($actions): bool
|
||||||
|
{
|
||||||
|
if ($actions & Backend::SET_PASSWORD) {
|
||||||
|
return !empty($this->properties[Opt::PASSWORD_CHANGE]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return parent::implementsActions($actions);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user