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
225c17d0
Commit
225c17d0
authored
7 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix permission on menu entry
parent
3f064769
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/menus/init_menu_auguria.sql
+3
-2
3 additions, 2 deletions
htdocs/core/menus/init_menu_auguria.sql
htdocs/core/menus/standard/eldy.lib.php
+2
-1
2 additions, 1 deletion
htdocs/core/menus/standard/eldy.lib.php
with
5 additions
and
3 deletions
htdocs/core/menus/init_menu_auguria.sql
+
3
−
2
View file @
225c17d0
...
...
@@ -287,8 +287,9 @@ insert into llx_menu (module, enabled, menu_handler, type, rowid, mainmenu, left
insert
into
llx_menu
(
module
,
enabled
,
menu_handler
,
type
,
rowid
,
mainmenu
,
leftmenu
,
fk_menu
,
url
,
titre
,
level
,
langs
,
perms
,
target
,
usertype
,
position
,
entity
)
values
(
''
,
'$conf->projet->enabled'
,
__HANDLER__
,
'left'
,
3700
__
+
MAX_llx_menu__
,
'project'
,
''
,
7
__
+
MAX_llx_menu__
,
'/projet/activity/index.php?leftmenu=projects'
,
'Activities'
,
0
,
'projects'
,
'$user->rights->projet->lire'
,
''
,
2
,
0
,
__ENTITY__
);
insert
into
llx_menu
(
module
,
enabled
,
menu_handler
,
type
,
rowid
,
mainmenu
,
leftmenu
,
fk_menu
,
url
,
titre
,
level
,
langs
,
perms
,
target
,
usertype
,
position
,
entity
)
values
(
''
,
'$conf->projet->enabled'
,
__HANDLER__
,
'left'
,
3701
__
+
MAX_llx_menu__
,
'project'
,
''
,
3700
__
+
MAX_llx_menu__
,
'/projet/tasks.php?leftmenu=projects&action=create'
,
'NewTask'
,
1
,
'projects'
,
'$user->rights->projet->creer'
,
''
,
2
,
1
,
__ENTITY__
);
insert
into
llx_menu
(
module
,
enabled
,
menu_handler
,
type
,
rowid
,
mainmenu
,
leftmenu
,
fk_menu
,
url
,
titre
,
level
,
langs
,
perms
,
target
,
usertype
,
position
,
entity
)
values
(
''
,
'$conf->projet->enabled'
,
__HANDLER__
,
'left'
,
3702
__
+
MAX_llx_menu__
,
'project'
,
''
,
3700
__
+
MAX_llx_menu__
,
'/projet/tasks/list.php?leftmenu=projects'
,
'List'
,
1
,
'projects'
,
'$user->rights->projet->lire'
,
''
,
2
,
2
,
__ENTITY__
);
insert
into
llx_menu
(
module
,
enabled
,
menu_handler
,
type
,
rowid
,
mainmenu
,
leftmenu
,
fk_menu
,
url
,
titre
,
level
,
langs
,
perms
,
target
,
usertype
,
position
,
entity
)
values
(
''
,
'$conf->projet->enabled'
,
__HANDLER__
,
'left'
,
3703
__
+
MAX_llx_menu__
,
'project'
,
''
,
3700
__
+
MAX_llx_menu__
,
'/projet/activity/perweek.php?leftmenu=projects'
,
'NewTimeSpent'
,
1
,
'projects'
,
'$user->rights->projet->lire'
,
''
,
2
,
3
,
__ENTITY__
);
insert
into
llx_menu
(
module
,
enabled
,
menu_handler
,
type
,
rowid
,
mainmenu
,
leftmenu
,
fk_menu
,
url
,
titre
,
level
,
langs
,
perms
,
target
,
usertype
,
position
,
entity
)
values
(
''
,
'$conf->projet->enabled'
,
__HANDLER__
,
'left'
,
3704
__
+
MAX_llx_menu__
,
'project'
,
''
,
3600
__
+
MAX_llx_menu__
,
'/projet/tasks/stats/index.php?leftmenu=projects'
,
'Statistics'
,
1
,
'projects'
,
'$user->rights->projet->lire'
,
''
,
2
,
4
,
__ENTITY__
);
insert
into
llx_menu
(
module
,
enabled
,
menu_handler
,
type
,
rowid
,
mainmenu
,
leftmenu
,
fk_menu
,
url
,
titre
,
level
,
langs
,
perms
,
target
,
usertype
,
position
,
entity
)
values
(
''
,
'$conf->projet->enabled'
,
__HANDLER__
,
'left'
,
3704
__
+
MAX_llx_menu__
,
'project'
,
''
,
3700
__
+
MAX_llx_menu__
,
'/projet/tasks/stats/index.php?leftmenu=projects'
,
'Statistics'
,
1
,
'projects'
,
'$user->rights->projet->lire'
,
''
,
2
,
4
,
__ENTITY__
);
insert
into
llx_menu
(
module
,
enabled
,
menu_handler
,
type
,
rowid
,
mainmenu
,
leftmenu
,
fk_menu
,
url
,
titre
,
level
,
langs
,
perms
,
target
,
usertype
,
position
,
entity
)
values
(
''
,
'$conf->projet->enabled'
,
__HANDLER__
,
'left'
,
3400
__
+
MAX_llx_menu__
,
'project'
,
''
,
7
__
+
MAX_llx_menu__
,
'/projet/activity/perweek.php?leftmenu=projects'
,
'NewTimeSpent'
,
0
,
'projects'
,
'$user->rights->projet->lire'
,
''
,
2
,
3
,
__ENTITY__
);
-- Project - Categories
insert
into
llx_menu
(
module
,
enabled
,
menu_handler
,
type
,
rowid
,
mainmenu
,
leftmenu
,
fk_menu
,
url
,
titre
,
level
,
langs
,
perms
,
target
,
usertype
,
position
,
entity
)
values
(
''
,
'$conf->categorie->enabled'
,
__HANDLER__
,
'left'
,
3804
__
+
MAX_llx_menu__
,
'project'
,
'cat'
,
3
__
+
MAX_llx_menu__
,
'/categories/index.php?leftmenu=cat&type=6'
,
'Categories'
,
0
,
'categories'
,
'$user->rights->categorie->lire'
,
''
,
2
,
4
,
__ENTITY__
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/menus/standard/eldy.lib.php
+
2
−
1
View file @
225c17d0
...
...
@@ -1322,9 +1322,10 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu
$newmenu
->
add
(
"/projet/activity/index.php?leftmenu=tasks"
.
(
$search_project_user
?
'&search_project_user='
.
$search_project_user
:
''
),
$langs
->
trans
(
"Activities"
),
0
,
$user
->
rights
->
projet
->
lire
);
$newmenu
->
add
(
"/projet/tasks.php?leftmenu=tasks&action=create"
,
$langs
->
trans
(
"NewTask"
),
1
,
$user
->
rights
->
projet
->
creer
);
$newmenu
->
add
(
"/projet/tasks/list.php?leftmenu=tasks"
.
(
$search_project_user
?
'&search_project_user='
.
$search_project_user
:
''
),
$langs
->
trans
(
"List"
),
1
,
$user
->
rights
->
projet
->
lire
);
$newmenu
->
add
(
"/projet/activity/perweek.php?leftmenu=tasks"
.
(
$search_project_user
?
'&search_project_user='
.
$search_project_user
:
''
),
$langs
->
trans
(
"NewTimeSpent"
),
1
,
$user
->
rights
->
projet
->
lire
);
$newmenu
->
add
(
"/projet/tasks/stats/index.php?leftmenu=projects"
,
$langs
->
trans
(
"Statistics"
),
1
,
$user
->
rights
->
projet
->
lire
);
$newmenu
->
add
(
"/projet/activity/perweek.php?leftmenu=tasks"
.
(
$search_project_user
?
'&search_project_user='
.
$search_project_user
:
''
),
$langs
->
trans
(
"NewTimeSpent"
),
0
,
$user
->
rights
->
projet
->
lire
);
// All project i have permission on
/*$newmenu->add("/projet/activity/index.php", $langs->trans("Activities"), 0, $user->rights->projet->lire && $user->rights->projet->lire);
$newmenu->add("/projet/tasks.php?action=create", $langs->trans("NewTask"), 1, $user->rights->projet->creer && $user->rights->projet->creer);
...
...
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