This repository was archived by the owner on Jan 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Added an option to unauthorize all previously authotized users. #18
Open
operez-ddgi
wants to merge
16
commits into
MarsBased:master
Choose a base branch
from
operez-ddgi:unverify-all-users
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
a2967d2
Added an option to unauthorize all previously authotized users. It wi…
operez-ddgi 5453ec0
Added an scope to the translation, as stated by @artero
operez-ddgi c8281f7
Moved authorizations deletion to a custom action
operez-ddgi 4bf1240
Moved authorizations deletion to a custom action
operez-ddgi f152d13
Moved authorizations deletion to a custom action
operez-ddgi 07235b2
Removed trailing whitespace
operez-ddgi f2b60e8
Removed trailing whitespace
operez-ddgi aac40b0
Removed trailing whitespace
operez-ddgi 94c04c0
Added whiteline after 'private' keyword
operez-ddgi 9e2afb5
Replaced conditional by if modifier
operez-ddgi a4ed7ea
Removed devel comments
operez-ddgi cf842ff
Added magic comment
operez-ddgi dfeaf0d
Replaced single quotes by double quotes
operez-ddgi 479ab93
Corrected indentation
operez-ddgi 87d39ff
Removed erroneus line
operez-ddgi f26a449
Removed 'update' route
operez-ddgi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,46 @@ | ||
| --- | ||
| en: | ||
| activemodel: | ||
| attributes: | ||
| file_authorization_handler: | ||
| id_document: Identification document (DNI, NIF, Password or Residence Card) | ||
| birthdate: Date of birth | ||
| census_authorization: | ||
| form: | ||
| date_select: | ||
| day: Day | ||
| month: Month | ||
| year: Year | ||
| id_document: Identification document (DNI, NIF, Password or Residence Card) | ||
| decidim: | ||
| authorization_handlers: | ||
| file_authorization_handler: | ||
| name: Municipality Census | ||
| explanation: Authorize your user account against the Municipality Census | ||
| type: Excel | ||
| name: Organization's Census | ||
| explanation: Authorize your user account against Organization's Census | ||
| type: CSV | ||
| fields: | ||
| birthdate: Birthdate | ||
| name: Municipality Census | ||
| file_authorization_handler: | ||
| errors: | ||
| messages: | ||
| not_censed: We could not find your document ID matching with this birthdate in our Census. If the data entered is correct and the problem persists, please, contact an administrator. | ||
| younger_than_minimum_age: You should be older than %{age} years | ||
| admin: | ||
| destroy: | ||
| title: Delete all census data | ||
| confirm: Delete all the census can not be undone. Are you sure you want to continue? | ||
| censuses: | ||
| create: | ||
| success: Successfully imported %{count} items (%{errors} errors) | ||
| destroy: | ||
| success: All census data have been deleted | ||
| delete_authorizations: | ||
| success: Removed authorizations | ||
| destroy: | ||
| confirm: Delete all the census can not be undone. Are you sure you want to continue? | ||
| title: Delete all census data | ||
| menu: | ||
| census: Upload census | ||
| show: | ||
| title: Current census data | ||
| data: There are %{count} records loaded in total. Last upload date was on %{due_date} | ||
| empty: There are no census data. Use the form below to import it using a CSV file. | ||
| new: | ||
| info: 'Must be a file generated by excel and exported with CSV format with two columns: identity document and date of birth' | ||
| title: Upload a new census | ||
| file: Excel .csv file with census data | ||
| info: 'Must be a file generated by excel and exported with CSV format with two columns: identity document and date of birth' | ||
| submit: Upload file | ||
| title: Upload a new census | ||
| show: | ||
| data: There are %{count} records loaded in total. Last upload date was on %{due_date} | ||
| empty: There are no census data. Use the form below to import it using a CSV file. | ||
| title: Current census data | ||
| update: | ||
| title: Remove authorizations | ||
| info: 'Remove all existing authorizations (attention: all users must be re-authorized)' | ||
| submit: Remove | ||
| errors: | ||
| messages: | ||
| not_censed: We could not find your document ID matching with this birthdate in our Census. If the data entered is correct and the problem persists, please, contact an administrator. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| Decidim::FileAuthorizationHandler::AdminEngine.routes.draw do | ||
| post "/delete_authorizations" => "censuses#delete_authorizations" | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, could you remove this line, please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooops! This line shbould not be there! Thank-you for pointing it!