Merge pull request #8121 from annando/delegations

Delegations now work again
pull/8124/head
Hypolite Petovan 2020-01-16 16:22:17 -05:00 committed by GitHub
commit b15c7bb357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class Delegation extends BaseSettingsModule
BaseModule::checkFormSecurityTokenRedirectOnError('settings/delegation', 'delegate');
$parent_uid = $_POST['parent_user'] ?? 0;
$parent_uid = (int)$_POST['parent_user'] ?? 0;
$parent_password = $_POST['parent_password'] ?? '';
if ($parent_uid != 0) {