Banned countries #50
Labels
No labels
bug
config
contribution welcome
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
refactor
upstream
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 4 hours 56 minutes
Due date
alex
4 hours 56 minutes
No due date set.
Dependencies
No dependencies set.
Reference
as-consult/starterkit-8#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We should be able to block the website access to certain countries.
It will result in a
forbidden accessstatus.Update the
BanCheckcontroller concernCreate a new private method
check_banned_countryIn case of positive match:
Create a model
BannedCountryThis model needs to be
auditable.We need to store:
StringISO 3166-1 alpha-2: wikipediaIntegerCreate a controller 'BannedCountriesController`
We need to be able to monitor the current banned countries for
adminroles only.3 actions :
Create views:
Create seeds
We can take as example
RUCreate Test
Model
Controller
Banned country moduleto Banned countries moduleBanned countries moduleto Banned countries