[Web] Allow admins to limit EAS and DAV access for mailbox users

This commit is contained in:
FreddleSpl0it committed 2026-01-28 09:49:33 +01:00
1 parent 038b2efb75
commit 56ea4302ed
16 files changed
+111 -57

No files matched your search

+1 -1
View File
@@ -121,7 +121,7 @@ class mailcowPdo extends OAuth2\Storage\Pdo {
$this->config['user_table'] = 'mailbox';
}
public function checkUserCredentials($username, $password) {
if (check_login($username, $password) == 'user') {
if (check_login($username, $password, array("role" => "user", "service" => "NONE")) == 'user') {
return true;
}
return false;