summaryrefslogtreecommitdiffstats
path: root/settings/users.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-05-16 14:53:04 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-05-16 14:53:04 +0200
commit9d1e60325c6f478484ff8f70ff3cd13d9d7d4913 (patch)
tree3c341c7c65af8de027ade37a72fc4208355a41df /settings/users.php
parent67a80e1870a47c0f060c58f65b3a6fc838c52b70 (diff)
downloadnextcloud-server-9d1e60325c6f478484ff8f70ff3cd13d9d7d4913.tar.gz
nextcloud-server-9d1e60325c6f478484ff8f70ff3cd13d9d7d4913.zip
allow admin to recover users files in case of password lost
Diffstat (limited to 'settings/users.php')
-rw-r--r--settings/users.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/users.php b/settings/users.php
index 94e6d0a9a10..e5c8a7aaa8d 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -20,6 +20,8 @@ $users = array();
$groups = array();
$isadmin = OC_User::isAdminUser(OC_User::getUser());
+$recoveryAdminEnabled = OC_App::isEnabled('files_encryption') &&
+ OC_Appconfig::getValue( 'files_encryption', 'recoveryAdminEnabled' );
if($isadmin) {
$accessiblegroups = OC_Group::getGroups();
@@ -77,4 +79,5 @@ $tmpl->assign( 'numofgroups', count($accessiblegroups));
$tmpl->assign( 'quota_preset', $quotaPreset);
$tmpl->assign( 'default_quota', $defaultQuota);
$tmpl->assign( 'defaultQuotaIsUserDefined', $defaultQuotaIsUserDefined);
+$tmpl->assign( 'recoveryAdminEnabled', $recoveryAdminEnabled);
$tmpl->printPage();