This repository was archived by the owner on Sep 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file.
3
3
4
4
## [ Unreleased]
5
+ #### Fixed
6
+ - Fixed the bug where isCesnetEligibleLastSeen was not set if user is empty
7
+
5
8
#### Changed
6
9
- Warning in disco-tpl modified due to changes in module perun
7
10
- Removed warning template - it is no longer needed here because it was moved to module perun
Original file line number Diff line number Diff line change @@ -141,10 +141,12 @@ public function process(&$request)
141
141
);
142
142
$ this ->cesnetEligibleLastSeenValue = $ this ->cesnetEligibleLastSeenAttribute ['value ' ];
143
143
}
144
+ }
144
145
145
- if ($ isHostelVerified || (!empty ($ this ->eduPersonScopedAffiliation ) && $ this ->isCesnetEligible ())) {
146
- $ this ->cesnetEligibleLastSeenValue = date ("Y-m-d H:i:s " );
146
+ if ($ isHostelVerified || (!empty ($ this ->eduPersonScopedAffiliation ) && $ this ->isCesnetEligible ())) {
147
+ $ this ->cesnetEligibleLastSeenValue = date ("Y-m-d H:i:s " );
147
148
149
+ if (!empty ($ user )) {
148
150
if ($ this ->cesnetEligibleLastSeenAttribute === null ) {
149
151
$ this ->cesnetEligibleLastSeenAttribute = $ this ->rpcConnector ->get (
150
152
'attributesManager ' ,
You can’t perform that action at this time.
0 commit comments