Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
4ae15adc
Commit
4ae15adc
authored
10 years ago
by
aspangaro
Browse files
Options
Downloads
Patches
Plain Diff
Fix: wrong link on leave tabs in user card
parent
214dbc1c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/modules/modHoliday.class.php
+3
-3
3 additions, 3 deletions
htdocs/core/modules/modHoliday.class.php
with
3 additions
and
3 deletions
htdocs/core/modules/modHoliday.class.php
+
3
−
3
View file @
4ae15adc
...
@@ -115,7 +115,7 @@ class modHoliday extends DolibarrModules
...
@@ -115,7 +115,7 @@ class modHoliday extends DolibarrModules
// 'group' to add a tab in group view
// 'group' to add a tab in group view
// 'contact' to add a tab in contact view
// 'contact' to add a tab in contact view
// 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member)
// 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member)
$this
->
tabs
=
array
(
'user:+paidholidays:CPTitreMenu:holiday:$user->rights->holiday->
write
:/holiday/
index
.php?mainmenu=holiday&id=__ID__'
);
$this
->
tabs
=
array
(
'user:+paidholidays:CPTitreMenu:holiday:$user->rights->holiday->
read
:/holiday/
list
.php?mainmenu=holiday&id=__ID__'
);
// Boxes
// Boxes
$this
->
boxes
=
array
();
// List of boxes
$this
->
boxes
=
array
();
// List of boxes
...
@@ -155,14 +155,14 @@ class modHoliday extends DolibarrModules
...
@@ -155,14 +155,14 @@ class modHoliday extends DolibarrModules
$r
++
;
$r
++
;
$this
->
rights
[
$r
][
0
]
=
20004
;
// Permission id (must not be already used)
$this
->
rights
[
$r
][
0
]
=
20004
;
// Permission id (must not be already used)
$this
->
rights
[
$r
][
1
]
=
'Read hol
l
idays for everybody'
;
// Permission label
$this
->
rights
[
$r
][
1
]
=
'Read holidays for everybody'
;
// Permission label
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
4
]
=
'read_all'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
4
]
=
'read_all'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
5
]
=
''
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
5
]
=
''
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$r
++
;
$r
++
;
$this
->
rights
[
$r
][
0
]
=
20005
;
// Permission id (must not be already used)
$this
->
rights
[
$r
][
0
]
=
20005
;
// Permission id (must not be already used)
$this
->
rights
[
$r
][
1
]
=
'Create/modify hol
l
idays for everybody'
;
// Permission label
$this
->
rights
[
$r
][
1
]
=
'Create/modify holidays for everybody'
;
// Permission label
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
4
]
=
'write_all'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
4
]
=
'write_all'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
5
]
=
''
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
5
]
=
''
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
...
...
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