Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
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 )
{
$allow_editteam
=
(
$comptoir
->
groupe_vendeurs
==
5
)
||
(
$comptoir
->
groupe_vendeurs
==
16
)
||
(
$comptoir
->
groupe_vendeurs
==
57
);
$err
=
NULL
;
...
...
@@ -927,14 +928,19 @@ elseif ( $comptoir->id > 0 )
{
$user
=
new
utilisateur
(
$site
->
dbrw
);
$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
);
else
$err
=
"Les barmans doivent être cotisants"
;
}
}
$site
->
start_page
(
"services"
,
"Administration des comptoirs"
);
$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=
\"
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