Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
1c7713d8
Commit
1c7713d8
authored
2 years ago
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent encaissement if adherent account is disabled
parent
ed2b0107
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
UserController.php
src/Controller/UserController.php
+10
-0
No files found.
src/Controller/UserController.php
View file @
1c7713d8
...
@@ -267,6 +267,16 @@ class UserController extends AbstractController
...
@@ -267,6 +267,16 @@ class UserController extends AbstractController
$adherent
=
$data
[
"adherent"
];
$adherent
=
$data
[
"adherent"
];
$adherent_code
=
$adherent
->
getPaymentCode
();
$adherent_code
=
$adherent
->
getPaymentCode
();
// if adherent account isn't enabled
if
(
!
$adherent
->
getUser
()
->
isEnabled
())
{
$this
->
addFlash
(
'error'
,
$this
->
translator
->
trans
(
'Le compte de l\'habitant·e est désactivé.'
)
);
goto
end
;
}
// if adherent doesn't have a validation code
// if adherent doesn't have a validation code
if
(
is_null
(
$adherent_code
))
{
if
(
is_null
(
$adherent_code
))
{
$this
->
addFlash
(
$this
->
addFlash
(
...
...
This diff is collapsed.
Click to expand it.
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