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
1d9253b3
Commit
1d9253b3
authored
Apr 29, 2014
by
Bertrand Gauthier
Browse files
Doit s'afficher même si un seul rôle sélectionnable!
parent
bdb6d673
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenAuth/View/Helper/UserProfileSelect.php
View file @
1d9253b3
...
...
@@ -6,8 +6,6 @@ use Zend\Permissions\Acl\Role\RoleInterface;
/**
* Aide de vue permettant à l'utilisateur de sélectionner son profil courant parmi
* les différents profils qu'il possède.
*
* Si l'utilisateur possède moins de 2 rôles, rien ne s'affiche.
*
* @author Bertrand GAUTHIER <bertrand.gauthier@unicaen.fr>
*/
...
...
@@ -126,10 +124,6 @@ EOS;
{
$roles
=
$this
->
getSelectableRoles
();
if
(
count
(
$roles
)
<
2
)
{
return
array
();
}
foreach
(
$roles
as
$id
=>
$role
)
{
$lib
=
'?'
;
if
(
is_object
(
$role
)
&&
method_exists
(
$role
,
'__toString'
))
{
...
...
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