Skip to content

Commit

Permalink
issue: PasswordPolicyBackend
Browse files Browse the repository at this point in the history
Use plugin getBkId() instead of getId() inline with plugins multi-instance
support.
  • Loading branch information
protich committed Sep 6, 2022
1 parent a706866 commit 5e53b1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/class.auth.php
Expand Up @@ -597,7 +597,7 @@ function getPasswordPolicies($user=null) {
$policies = PasswordPolicy::allActivePolicies();
if ($cfg && ($policy = $cfg->getStaffPasswordPolicy())) {
foreach ($policies as $P)
if ($policy == $P->getId())
if ($policy == $P->getBkId())
return array($P);
}

Expand Down
2 changes: 1 addition & 1 deletion include/staff/settings-agents.inc.php
Expand Up @@ -89,7 +89,7 @@
<option value=" "> &mdash; <?php echo __('All Active Policies'); ?> &mdash;</option>
<?php
foreach (PasswordPolicy::allActivePolicies() as $P) {
$id = $P->getId();
$id = $P->getBkId();
echo sprintf('<option value="%s" %s>%s</option>',
$id,
(($config['agent_passwd_policy'] == $id) ?
Expand Down

0 comments on commit 5e53b1a

Please sign in to comment.