diff options
author | Steve Clay <steve@mrclay.org> | 2012-06-24 00:09:17 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-06-24 00:09:17 -0400 |
commit | 4a3c49240140449ef4c91c4b999a91b11380db3c (patch) | |
tree | 3d1e92342473e2fd90059d9abcfe88e79def9a25 /mod/notifications/views/default/forms/notificationsettings/groupsave.php | |
parent | d71309056037adc869319566f9ec53313eb192d8 (diff) | |
download | elgg-4a3c49240140449ef4c91c4b999a91b11380db3c.tar.gz elgg-4a3c49240140449ef4c91c4b999a91b11380db3c.tar.bz2 |
Fixes #4138: Admin can edit any users' notifications
Diffstat (limited to 'mod/notifications/views/default/forms/notificationsettings/groupsave.php')
-rw-r--r-- | mod/notifications/views/default/forms/notificationsettings/groupsave.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/notifications/views/default/forms/notificationsettings/groupsave.php b/mod/notifications/views/default/forms/notificationsettings/groupsave.php index 61b94ff8b..168639ab2 100644 --- a/mod/notifications/views/default/forms/notificationsettings/groupsave.php +++ b/mod/notifications/views/default/forms/notificationsettings/groupsave.php @@ -3,13 +3,18 @@ * Elgg notifications groups subscription form * * @package ElggNotifications + * + * @uses $vars['user'] ElggUser */ +/* @var ElggUser $user */ +$user = $vars['user']; + global $NOTIFICATION_HANDLERS; foreach ($NOTIFICATION_HANDLERS as $method => $foo) { $subsbig[$method] = elgg_get_entities_from_relationship(array( 'relationship' => 'notify' . $method, - 'relationship_guid' => elgg_get_logged_in_user_guid(), + 'relationship_guid' => $user->guid, 'types' => 'group', 'limit' => 99999, )); @@ -97,6 +102,7 @@ END; <?php } echo '<div class="elgg-foot mtm">'; + echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $user->guid)); echo elgg_view('input/submit', array('value' => elgg_echo('save'))); echo '</div>'; |