Skip to content

Commit

Permalink
SUBSCRIBE_USER_TO_SESSION_FROM_USERNAME prevents unsubscriptions - re…
Browse files Browse the repository at this point in the history
…fs BT#16390
  • Loading branch information
Sébastien Ducoulombier committed Nov 22, 2019
1 parent 7e89da2 commit 6af283e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/webservices/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ public function subscribeUserToSessionFromUsername($sessionId, $loginName)
throw new Exception(get_lang('UserNotFound'));
}

$subscribed = SessionManager::subscribeUsersToSession($sessionId, [$userId]);
$subscribed = SessionManager::subscribeUsersToSession($sessionId, [$userId], SESSION_VISIBLE_READ_ONLY, false);
if (!$subscribed) {
throw new Exception(get_lang('UserNotSubscribed'));
}
Expand Down

0 comments on commit 6af283e

Please sign in to comment.