@@ -85,7 +85,7 @@ |
||
| 85 | 85 | { |
| 86 | 86 | /** @var UserInvitation $invitation */ |
| 87 | 87 | $invitation = $this->objFromFixture('UserInvitation', 'expired'); |
| 88 | - $response = $this->get($this->controller->Link('accept/' . $invitation->TempHash)); |
|
| 88 | + $response = $this->get($this->controller->Link('accept/'.$invitation->TempHash)); |
|
| 89 | 89 | $this->assertEquals(302, $response->getStatusCode()); |
| 90 | 90 | $this->assertEquals('/user/expired', $response->getHeader('Location')); |
| 91 | 91 | } |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | return $result; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | - public function canCreate($member = null){ |
|
| 127 | + public function canCreate($member = null) { |
|
| 128 | 128 | return Permission::check('ACCESS_USER_INVITATIONS'); |
| 129 | 129 | } |
| 130 | 130 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | { |
| 29 | 29 | if (!Member::currentUserID()) { |
| 30 | 30 | return $this->redirect('/Security/login'); |
| 31 | - } else if (!Permission::check('ACCESS_USER_INVITATIONS')){ |
|
| 31 | + } else if (!Permission::check('ACCESS_USER_INVITATIONS')) { |
|
| 32 | 32 | return Security::permissionFailure(); |
| 33 | 33 | |
| 34 | 34 | } else return $this->renderWith(array('UserController', 'Page')); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | $invite = UserInvitation::create(); |
| 82 | - if (!Permission::check('ACCESS_USER_INVITATIONS')){ |
|
| 82 | + if (!Permission::check('ACCESS_USER_INVITATIONS')) { |
|
| 83 | 83 | $form->saveInto($invite); |
| 84 | 84 | try { |
| 85 | 85 | $invite->write(); |