Skip to content

user registration: handle accepted policies#1187

Open
deer-wmde wants to merge 7 commits into
mainfrom
accept_policies
Open

user registration: handle accepted policies#1187
deer-wmde wants to merge 7 commits into
mainfrom
accept_policies

Conversation

@deer-wmde

@deer-wmde deer-wmde commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@deer-wmde deer-wmde marked this pull request as ready for review July 9, 2026 15:13
@deer-wmde deer-wmde changed the title user registration: handle accepted policys user registration: handle accepted policies Jul 9, 2026

@dati18 dati18 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I helped out a bit to figure out why test failed

use App\UserTermsOfUseAcceptance;
use App\Policy;
use App\PolicyAcceptance;
use App\TermsOfUseVersion

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missng a ;

Suggested change
use App\TermsOfUseVersion
use App\TermsOfUseVersion;

]);

// accept latest Terms of Use Policy automatically
$latestToU = TermsOfUseVersion::latestActiveVersion();

@dati18 dati18 Jul 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

references to classes that have been deleted since T430532
You can remove it entirely

@@ -12,11 +16,12 @@ class UserCreateJob extends Job {

private $verified;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$this->acceptedPolicyIds assigned in constructor with no property declaration

Suggested change
private $verified;
private $verified;
private $acceptedPolicyIds;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants