Merge pull request #8121 from annando/delegations

Delegations now work again
This commit is contained in:
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

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) {