Skip to content

Commit

Permalink
[Imaging_browser] Access to view session based on session project (ac…
Browse files Browse the repository at this point in the history
…es#6888)

Changed check from project from the candidate's registration project to the session's project on the view session page.

Resolves aces#6872
  • Loading branch information
ridz1208 authored and spell00 committed Aug 13, 2020
1 parent 9e13074 commit 5e7a284
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/imaging_browser/php/viewsession.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class ViewSession extends \NDB_Form
/* User has access if they have an 'all site' permission or if they are
* part of a study site and are permitted to view their own site.
*/
<<<<<<< 9e130744c807fee9c768f3ff84ccbd7e98d972af
<<<<<<< 727643d319286c29f66ca88ebb55aed880e258d7
$session = \TimePoint::singleton(
new \SessionID(strval($_REQUEST['sessionID']))
Expand All @@ -61,6 +62,16 @@ class ViewSession extends \NDB_Form
new \SessionID(strval($_REQUEST['sessionID']))
)->getCandID();
>>>>>>> Use the SessionID class in LORIS (#5352)
=======
<<<<<<< 59cb1d14608d02b18229379250cb76f08341102a
$candid = \TimePoint::singleton(
new \SessionID(strval($_REQUEST['sessionID']))
)->getCandID();
=======
$session = \TimePoint::singleton($_REQUEST['sessionID']);
$candid = $session->getCandID();
>>>>>>> [Imaging_browser] Access to view session based on session project (#6888)
>>>>>>> [Imaging_browser] Access to view session based on session project (#6888)
$candidate = \Candidate::singleton($candid);

if ($candidate->getData('Entity_type') == 'Scanner') {
Expand Down

0 comments on commit 5e7a284

Please # to comment.