Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glpi
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
med wassim chayeb
glpi
Commits
1c6c9dc9
Commit
1c6c9dc9
authored
7 years ago
by
yllen
Committed by
Johan Cwiklinski
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix rights in computer tabs - see #3218
parent
92f98358
No related branches found
Branches containing commit
Tags
9.1.7
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/computerantivirus.class.php
+2
-1
2 additions, 1 deletion
inc/computerantivirus.class.php
inc/computerdisk.class.php
+3
-2
3 additions, 2 deletions
inc/computerdisk.class.php
with
5 additions
and
3 deletions
inc/computerantivirus.class.php
+
2
−
1
View file @
1c6c9dc9
...
...
@@ -188,7 +188,7 @@ class ComputerAntivirus extends CommonDBChild {
function
showForm
(
$ID
,
$options
=
array
())
{
global
$CFG_GLPI
;
if
(
!
Session
::
haveRight
(
"computer"
,
UPDATE
))
{
if
(
!
Session
::
haveRight
(
"computer"
,
READ
))
{
return
false
;
}
...
...
@@ -262,6 +262,7 @@ class ComputerAntivirus extends CommonDBChild {
echo
"<td colspan='2'></td>"
;
echo
"</tr>"
;
$options
[
'canedit'
]
=
Session
::
haveRight
(
"computer"
,
UPDATE
);
$this
->
showFormButtons
(
$options
);
return
true
;
...
...
This diff is collapsed.
Click to expand it.
inc/computerdisk.class.php
+
3
−
2
View file @
1c6c9dc9
...
...
@@ -102,7 +102,7 @@ class ComputerDisk extends CommonDBChild {
$ong
=
array
();
$this
->
addDefaultFormTab
(
$ong
);
$this
->
addStandardTab
(
'Log'
,
$ong
,
$options
);
return
$ong
;
}
...
...
@@ -144,7 +144,7 @@ class ComputerDisk extends CommonDBChild {
function
showForm
(
$ID
,
$options
=
array
())
{
global
$CFG_GLPI
;
if
(
!
Session
::
haveRight
(
"computer"
,
UPDATE
))
{
if
(
!
Session
::
haveRight
(
"computer"
,
READ
))
{
return
false
;
}
...
...
@@ -209,6 +209,7 @@ class ComputerDisk extends CommonDBChild {
Html
::
autocompletionTextField
(
$this
,
"freesize"
);
echo
" "
.
__
(
'Mio'
)
.
"</td></tr>"
;
$options
[
'canedit'
]
=
Session
::
haveRight
(
"computer"
,
UPDATE
);
$this
->
showFormButtons
(
$options
);
return
true
;
...
...
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