Skip to content
Snippets Groups Projects
Commit 75eba308 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fixes for modules/authorize

parent f0e198e7
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter ...@@ -99,6 +99,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter
* Apply filter to validate attributes. * Apply filter to validate attributes.
* *
* @param array &$request The current request * @param array &$request The current request
* @return void
*/ */
public function process(&$request) public function process(&$request)
{ {
...@@ -108,7 +109,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter ...@@ -108,7 +109,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter
$attributes = &$request['Attributes']; $attributes = &$request['Attributes'];
// Store the rejection message array in the $request // Store the rejection message array in the $request
if(!empty($this->reject_msg)) { if (!empty($this->reject_msg)) {
$request['authprocAuthorize_reject_msg'] = $this->reject_msg; $request['authprocAuthorize_reject_msg'] = $this->reject_msg;
} }
...@@ -149,6 +150,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter ...@@ -149,6 +150,7 @@ class Authorize extends \SimpleSAML\Auth\ProcessingFilter
* permission logic. * permission logic.
* *
* @param array $request * @param array $request
* @return void
*/ */
protected function unauthorized(&$request) protected function unauthorized(&$request)
{ {
......
...@@ -14,7 +14,7 @@ $this->data['403_header'] = $this->t('{authorize:Authorize:403_header}'); ...@@ -14,7 +14,7 @@ $this->data['403_header'] = $this->t('{authorize:Authorize:403_header}');
$this->data['403_text'] = $this->t('{authorize:Authorize:403_text}'); $this->data['403_text'] = $this->t('{authorize:Authorize:403_text}');
if (array_key_exists('reject_msg', $this->data)) { if (array_key_exists('reject_msg', $this->data)) {
if(isset($this->data['reject_msg'][$this->getLanguage()])) { if (isset($this->data['reject_msg'][$this->getLanguage()])) {
$this->data['403_text'] = $this->data['reject_msg'][$this->getLanguage()]; $this->data['403_text'] = $this->data['reject_msg'][$this->getLanguage()];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment