Skip to content

Commit 6ac73cc

Browse files
committed
get user from logged in session
1 parent df4c12a commit 6ac73cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Routes/Account.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ public static function respondToRegister() {
225225
}
226226

227227
public static function respondToSharing() {
228+
$user = User::getUser(Session::getLoggedInUser());
228229
$clientId = $_POST['client_id'];
229230
$userId = $user['userId'];
230231
if ($_POST['consent'] === 'true') {

0 commit comments

Comments
 (0)