Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
auth
Commits
b31cebac
Commit
b31cebac
authored
Aug 31, 2017
by
Laurent Lécluse
Browse files
Correction de bug du mouchard si pas d'utilisateur connecté
parent
f1eba1aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/Mouchard/MouchardCompleterAuth.php
View file @
b31cebac
...
...
@@ -22,7 +22,10 @@ class MouchardCompleterAuth implements MouchardCompleterInterface
*/
public
function
complete
(
MouchardMessage
$message
)
{
$message
->
setUser
((
string
)
$this
->
getServiceUserContext
()
->
getDbUser
()
->
getDisplayName
());
$user
=
$this
->
getServiceUserContext
()
->
getDbUser
();
if
(
$user
)
$user
=
$user
->
getDisplayName
();
$message
->
setUser
(
$user
);
$message
->
setRole
((
string
)
$this
->
getServiceUserContext
()
->
getSelectedIdentityRole
());
return
$this
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment