Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
bcbe8beb
Commit
bcbe8beb
authored
1 year ago
by
Philipp Schüttlöffel
Committed by
Jan-Hendrik Willms
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Sichtbarkeitseinstellungen in Benutzerverwaltung verwirrend"
Closes #2983 Merge request
studip/studip!2000
parent
2ebb832c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/views/settings/privacy.php
+3
-3
3 additions, 3 deletions
app/views/settings/privacy.php
lib/user_visible.inc.php
+6
-6
6 additions, 6 deletions
lib/user_visible.inc.php
with
9 additions
and
9 deletions
app/views/settings/privacy.php
+
3
−
3
View file @
bcbe8beb
...
...
@@ -27,7 +27,7 @@ use Studip\Button, Studip\LinkButton;
<select
name=
"global_visibility"
aria-describedby=
"global_vis_description"
id=
"global_vis"
>
<?php
if
(
count
(
$user_domains
))
{
printf
(
"<option %s value=
\"
global
\"
>"
.
_
(
'sichtbar für alle Nutze
r
'
)
.
"</option>"
,
$global_visibility
===
'global'
?
'selected="selected"'
:
''
);
printf
(
"<option %s value=
\"
global
\"
>"
.
_
(
'sichtbar für alle Nutze
nden
'
)
.
"</option>"
,
$global_visibility
===
'global'
?
'selected="selected"'
:
''
);
$visible_text
=
_
(
'sichtbar für eigene Nutzerdomäne'
);
}
else
{
$visible_text
=
_
(
'sichtbar'
);
...
...
@@ -38,11 +38,11 @@ use Studip\Button, Studip\LinkButton;
</select>
<?
else
:
?>
<?
if
(
$global_visibility
===
'never'
)
:
?>
<em>
<?=
_
(
'
Ihre Kennung wurde von einem Administrator unsichtbar geschaltet
.'
)
?>
</em>
<em>
<?=
_
(
'
Sie sind unsichtbar (durch Administrator/in eingestellt)
.'
)
?>
</em>
<?
elseif
(
$user_perm
==
'dozent'
&&
Config
::
get
()
->
DOZENT_ALWAYS_VISIBLE
)
:
?>
<em>
<?=
_
(
'Sie haben Lehrendenrechte und sind daher immer global sichtbar.'
)
?>
</em>
<?
else
:
?>
<em>
<?=
_
(
'Sie sind immer global sichtbar.'
)
?>
</em>
<em>
<?=
_
(
'Sie sind immer global sichtbar
(durch Administrator/in eingestellt)
.'
)
?>
</em>
<?
endif
;
?>
<input
type=
"hidden"
name=
"global_visibility"
value=
"
<?=
$global_visibility
?>
"
>
<?
endif
;
?>
...
...
This diff is collapsed.
Click to expand it.
lib/user_visible.inc.php
+
6
−
6
View file @
bcbe8beb
...
...
@@ -207,12 +207,12 @@ function vis_chooser($vis, $new = false, $id = false) {
}
$txt
=
[];
$txt
[]
=
sprintf
(
'<select name="visible"%s>'
,
$id
?
'id="'
.
htmlReady
(
$id
)
.
'"'
:
''
);
$txt
[]
=
'<option value="
global
"'
.
(
$vis
===
"
global"
?
"
selected
"
:
""
)
.
'>'
.
_
(
"global
"
)
.
'</option>'
;
$txt
[]
=
'<option value="
always
"'
.
(
$vis
===
"
always
"
?
" selected"
:
""
)
.
'>'
.
_
(
"
immer
"
)
.
'</option>'
;
$txt
[]
=
'<option value="yes"'
.
(
$vis
===
"yes"
?
" selected"
:
""
)
.
'>'
.
_
(
"
ja
"
)
.
'</option>'
;
$txt
[]
=
'<option value="
unknown"'
.
((
$new
||
$vis
===
"unknown"
)
?
' selected="
selected"
'
:
''
)
.
'>'
.
_
(
"un
bekannt
"
)
.
'</option>'
;
$txt
[]
=
'<option value="
no
"'
.
(
$vis
===
"
no
"
?
" selected"
:
""
)
.
'>'
.
_
(
"
nei
n"
)
.
'</option>'
;
$txt
[]
=
'<option value="never"'
.
(
$vis
===
"never"
?
" selected"
:
""
)
.
'>'
.
_
(
"
niemals
"
)
.
'</option>'
;
$txt
[]
=
'<option value="
unknown
"'
.
(
(
$new
||
$vis
===
"
unknown"
)
?
'
selected
="selected"'
:
''
)
.
'>'
.
_
(
"Standardeinstellung
"
)
.
'</option>'
;
$txt
[]
=
'<option value="
global
"'
.
(
$vis
===
"
global
"
?
" selected"
:
""
)
.
'>'
.
_
(
"
sichtbar für alle Nutzenden
"
)
.
'</option>'
;
$txt
[]
=
'<option value="yes"'
.
(
$vis
===
"yes"
?
" selected"
:
""
)
.
'>'
.
_
(
"
sichtbar für eigene Nutzerdomäne
"
)
.
'</option>'
;
$txt
[]
=
'<option value="
no"'
.
(
$vis
===
"no"
?
"
selected"
:
""
)
.
'>'
.
_
(
"un
sichtbar
"
)
.
'</option>'
;
$txt
[]
=
'<option value="
always
"'
.
(
$vis
===
"
always
"
?
" selected"
:
""
)
.
'>'
.
_
(
"
Sichtbarkeit erzwinge
n"
)
.
'</option>'
;
$txt
[]
=
'<option value="never"'
.
(
$vis
===
"never"
?
" selected"
:
""
)
.
'>'
.
_
(
"
Unsichtbarkeit erzwingen
"
)
.
'</option>'
;
$txt
[]
=
'</select>'
;
return
implode
(
"
\n
"
,
$txt
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment