Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User white lists #4

Merged
merged 4 commits into from
Apr 18, 2016
Merged

User white lists #4

merged 4 commits into from
Apr 18, 2016

Conversation

zhil
Copy link
Contributor

@zhil zhil commented Apr 11, 2016

I am not sure about format of parameter license_whitelist, but as for me its more easy to set white-list flags directly in database

return;
}

$today = date('Y-m-d');
$whitelist = $this->kernel->getContainer()->getParameter('license_whitelist');
foreach ($whitelist as $allowed) {
Copy link
Owner

Choose a reason for hiding this comment

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

Thanks, I like the idea of being able to manipulate this from the DB!

Could you please cleanup the old logic of checking the params, as well as remove the relevant entries from parameters.yml.dist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, current implementation allow to use "both ways" - database and parameters.yml
Leaving code for processing parameters.yml will give full backward compatibility.
So, basically, you could simply update lib and not required to change parameters.yml
Maybe lets leave that code for BC?

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah, makes sense.

Thanks! 👍

@thecatontheflat thecatontheflat merged commit 625d80d into thecatontheflat:master Apr 18, 2016
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