Skip to content

Commit

Permalink
Don't show password reset prefs if disabled in configuration (Bug #13…
Browse files Browse the repository at this point in the history
…618).
  • Loading branch information
yunosh committed Oct 6, 2014
1 parent 8856157 commit f9c8901
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions horde/config/prefs.php
Expand Up @@ -328,6 +328,9 @@
'security_question', 'security_answer', 'alternate_email'
),
'suppress' => function() {
if (!$GLOBALS['conf']['auth']['resetpassword']) {
return true;
}
try {
$GLOBALS['injector']->getInstance('Horde_Core_Factory_Auth')->create()->hasCapability('update');
return false;
Expand Down

0 comments on commit f9c8901

Please sign in to comment.