Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit c733098

Browse files
committed
Using correct const for EntitlementPrefix in PerunEntitlement.php
1 parent b9f491a commit c733098

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
#### Fixed
6+
- Using correct const for EntitlementPrefix in PerunEntitlement.php
57

68
## [v3.7.0]
79
#### Changed

lib/Auth/Process/PerunEntitlement.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ protected function mapGroupName($request, $groupName)
190190
' for SP ' . $request['SPMetadata']['entityid']
191191
);
192192
return $request['SPMetadata']['groupMapping'][$groupName];
193-
} elseif (isset($request['SPMetadata'][self::GROUPNAMEPREFIX_ATTR])) {
193+
} elseif (isset($request['SPMetadata'][self::ENTITLEMENTPREFIX_ATTR])) {
194194
Logger::debug(
195-
'GroupNamePrefix overridden by a SP ' . $request['SPMetadata']['entityid'] .
196-
' to ' . $request['SPMetadata'][self::GROUPNAMEPREFIX_ATTR]
195+
'EntitlementPrefix overridden by a SP ' . $request['SPMetadata']['entityid'] .
196+
' to ' . $request['SPMetadata'][self::ENTITLEMENTPREFIX_ATTR]
197197
);
198-
return $request['SPMetadata'][self::GROUPNAMEPREFIX_ATTR] . $groupName;
198+
return $request['SPMetadata'][self::ENTITLEMENTPREFIX_ATTR] . $groupName;
199199
} else {
200200
# No mapping defined, so just put groupNamePrefix in front of the group
201201
Logger::debug(

0 commit comments

Comments
 (0)