Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ae2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine
ae2
Commits
fdd68417
Commit
fdd68417
authored
Mar 03, 2015
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Barmen must be member
parent
e05dda6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
comptoir/admin.php
comptoir/admin.php
+7
-1
No files found.
comptoir/admin.php
View file @
fdd68417
...
@@ -895,6 +895,7 @@ elseif ( $comptoir->id > 0 )
...
@@ -895,6 +895,7 @@ elseif ( $comptoir->id > 0 )
{
{
$allow_editteam
=
(
$comptoir
->
groupe_vendeurs
==
5
)
||
(
$comptoir
->
groupe_vendeurs
==
16
)
||
(
$comptoir
->
groupe_vendeurs
==
57
);
$allow_editteam
=
(
$comptoir
->
groupe_vendeurs
==
5
)
||
(
$comptoir
->
groupe_vendeurs
==
16
)
||
(
$comptoir
->
groupe_vendeurs
==
57
);
$err
=
NULL
;
...
@@ -927,14 +928,19 @@ elseif ( $comptoir->id > 0 )
...
@@ -927,14 +928,19 @@ elseif ( $comptoir->id > 0 )
{
{
$user
=
new
utilisateur
(
$site
->
dbrw
);
$user
=
new
utilisateur
(
$site
->
dbrw
);
$user
->
load_by_id
(
$_REQUEST
[
"id_utilisateur"
]);
$user
->
load_by_id
(
$_REQUEST
[
"id_utilisateur"
]);
if
(
$user
->
id
>
0
)
if
(
$user
->
id
>
0
&&
$user
->
cotisant
)
// l'utilisateur doit etre cotisant
$grp
->
add_user_to_group
(
$user
->
id
);
$grp
->
add_user_to_group
(
$user
->
id
);
else
$err
=
"Les barmans doivent être cotisants"
;
}
}
}
}
$site
->
start_page
(
"services"
,
"Administration des comptoirs"
);
$site
->
start_page
(
"services"
,
"Administration des comptoirs"
);
$cts
=
new
contents
(
"<a href=
\"
admin.php
\"
>Administration comptoirs</a> / "
.
$comptoir
->
nom
);
$cts
=
new
contents
(
"<a href=
\"
admin.php
\"
>Administration comptoirs</a> / "
.
$comptoir
->
nom
);
if
(
$err
!=
NULL
)
$cts
->
add_paragraph
(
"Erreur: "
.
$err
,
"formerror"
);
$cts
->
add_paragraph
(
"<a href=
\"
admin.php?page=barcodes&id_comptoir="
.
$comptoir
->
id
.
"
\"
>Codes barre</a>"
);
$cts
->
add_paragraph
(
"<a href=
\"
admin.php?page=barcodes&id_comptoir="
.
$comptoir
->
id
.
"
\"
>Codes barre</a>"
);
$cts
->
add_paragraph
(
"<a href=
\"
compta.php?id_comptoir="
.
$comptoir
->
id
.
"
\"
>Comptabilité</a>"
);
$cts
->
add_paragraph
(
"<a href=
\"
compta.php?id_comptoir="
.
$comptoir
->
id
.
"
\"
>Comptabilité</a>"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment