Skip to content

Commit

Permalink
Updating status for open sessions -refs BT10175 #FGE
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoDucou committed Aug 26, 2015
1 parent 4bd87fe commit 5d15b58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/advanced_subscription/src/HookAdvancedSubscription.php
Expand Up @@ -495,6 +495,9 @@ public static function WSSessionGetDetailsByUser($params)
if ($isOpen) {
// Go to Course session
$data['action_url'] = self::$plugin->getOpenSessionUrl($userId, $params);
if (SessionManager::isUserSubscribedAsStudent($sessionId, $userId)) {
$data['status'] = 10;
}
} else {
try {
$isAllowed = self::$plugin->isAllowedToDoRequest($userId, $params);
Expand Down

0 comments on commit 5d15b58

Please sign in to comment.