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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
12e91f1c
Commit
12e91f1c
authored
8 years ago
by
alexis Algoud
Browse files
Options
Downloads
Patches
Plain Diff
fix rights inventory only for MAIN_LEVEL_FEATURES = 2
parent
6138d197
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/modules/modStock.class.php
+22
-25
22 additions, 25 deletions
htdocs/core/modules/modStock.class.php
with
22 additions
and
25 deletions
htdocs/core/modules/modStock.class.php
+
22
−
25
View file @
12e91f1c
...
...
@@ -117,37 +117,34 @@ class modStock extends DolibarrModules
$this
->
rights
[
4
][
4
]
=
'mouvement'
;
$this
->
rights
[
4
][
5
]
=
'creer'
;
if
(
$conf
->
global
->
MAIN_LEVEL_FEATURES
>=
2
)
{
$this
->
rights
[
$r
][
0
]
=
1006
;
$this
->
rights
[
$r
][
1
]
=
'inventoryReadPermission'
;
// Permission label
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
4
]
=
'read'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$r
++
;
$this
->
rights
[
5
][
0
]
=
1006
;
$this
->
rights
[
5
][
1
]
=
'inventoryReadPermission'
;
// Permission label
$this
->
rights
[
5
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
5
][
4
]
=
'read'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
0
]
=
1007
;
$this
->
rights
[
$r
][
1
]
=
'inventoryCreatePermission'
;
// Permission label
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
4
]
=
'create'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$r
++
;
$this
->
rights
[
6
][
0
]
=
1007
;
$this
->
rights
[
6
][
1
]
=
'inventoryCreatePermission'
;
// Permission label
$this
->
rights
[
6
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
6
][
4
]
=
'create'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
0
]
=
1008
;
$this
->
rights
[
$r
][
1
]
=
'inventoryWritePermission'
;
// Permission label
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
4
]
=
'write'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$r
++
;
$this
->
rights
[
7
][
0
]
=
1008
;
$this
->
rights
[
7
][
1
]
=
'inventoryWritePermission'
;
// Permission label
$this
->
rights
[
7
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
7
][
4
]
=
'write'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
0
]
=
1009
;
$this
->
rights
[
$r
][
1
]
=
'inventoryValidatePermission'
;
// Permission label
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
4
]
=
'validate'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$r
++
;
$this
->
rights
[
7
][
0
]
=
1009
;
$this
->
rights
[
7
][
1
]
=
'inventoryValidatePermission'
;
// Permission label
$this
->
rights
[
7
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
7
][
4
]
=
'validate'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$this
->
rights
[
$r
][
0
]
=
1010
;
$this
->
rights
[
$r
][
1
]
=
'inventoryChangePMPPermission'
;
// Permission label
$this
->
rights
[
$r
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
$r
][
4
]
=
'changePMP'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
$r
++
;
$this
->
rights
[
7
][
0
]
=
1010
;
$this
->
rights
[
7
][
1
]
=
'inventoryChangePMPPermission'
;
// Permission label
$this
->
rights
[
7
][
3
]
=
0
;
// Permission by default for new user (0/1)
$this
->
rights
[
7
][
4
]
=
'changePMP'
;
// In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
}
// Main menu entries
$this
->
menu
=
array
();
// List of menus to add
...
...
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