Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GEWIS/gewisweb
Browse files Browse the repository at this point in the history
  • Loading branch information
jszanto committed Jan 10, 2017
2 parents 4ed1efd + 53251d5 commit 379b131
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function viewAction()
$activity = $queryService->getActivity($id);

$translatedActivity = $translatorService->getTranslatedActivity($activity, $langSession->lang);
$identity = $this->getServiceLocator()->get('user_service_user')->getIdentity();
$identity = $this->getServiceLocator()->get('user_role');
/** @var Signup $signupService */
$signupService = $this->getServiceLocator()->get('activity_service_signup');
$isAllowedToSubscribe = $signupService->isAllowedToSubscribe();
Expand All @@ -56,8 +56,8 @@ public function viewAction()
$subscriptionDeadLinePassed = $activity->getSubscriptionDeadline() < new \DateTime();
$result = [
'activity' => $translatedActivity,
'signupOpen' => $activity->getCanSignUp() &&
!$subscriptionDeadLinePassed &&
'signupOpen' => $activity->getCanSignUp() &&
!$subscriptionDeadLinePassed &&
$activity->getStatus() === Activity::STATUS_APPROVED,
'isAllowedToSubscribe' => $isAllowedToSubscribe,
'isSignedUp' => $isAllowedToSubscribe && $signupService->isSignedUp($translatedActivity, $identity->getMember()),
Expand Down
Binary file modified module/Application/language/nl.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion module/Application/language/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -2365,7 +2365,7 @@ msgstr ""

#: module/Decision/view/decision/member/index.phtml:8
msgid "Personal"
msgstr "Persoonlijjk"
msgstr "Persoonlijk"

#: module/Decision/view/decision/member/index.phtml:13
msgid "Profile"
Expand Down

0 comments on commit 379b131

Please sign in to comment.