-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a `publisher` role for users * Creates user fixture with publisher role. * Renames `superadmin` to `superuser` for consistency. * Adds a method to retrieve organisation from current user. * Adds a method to retrieve user record from current logged user. * Refactors fixtures in tests for easily testing permissions. * Removes lines and sort translations in extracted messages. Co-Authored-by: Sébastien Délèze <[email protected]>
- Loading branch information
Sébastien Délèze
committed
Jun 3, 2020
1 parent
dd77731
commit 96c5792
Showing
36 changed files
with
6,069 additions
and
11,069 deletions.
There are no files selected for viewing
This file contains 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,9 +1,9 @@ | ||
[ | ||
{ | ||
"full_name": "Jorg Mueller", | ||
"email": "rero.sonar+superadmin@gmail.com", | ||
"email": "rero.sonar+superuser@gmail.com", | ||
"password": "123456", | ||
"roles": ["superadmin"], | ||
"roles": ["superuser"], | ||
"birth_date": "1978-03-09", | ||
"street": "Sonnenbergstr 39", | ||
"postal_code": "6544", | ||
|
@@ -41,6 +41,20 @@ | |
"$ref": "https://sonar.ch/api/organisations/rero" | ||
} | ||
}, | ||
{ | ||
"full_name": "Claude Roussel", | ||
"email": "[email protected]", | ||
"password": "123456", | ||
"roles": ["publisher"], | ||
"birth_date": "1983-09-14", | ||
"street": "Kirchstrasse 57", | ||
"postal_code": "1660", | ||
"city": "La Lécherette", | ||
"phone": "+41269639084", | ||
"organisation": { | ||
"$ref": "https://sonar.ch/api/organisations/rero" | ||
} | ||
}, | ||
{ | ||
"full_name": "Jules Brochu", | ||
"email": "[email protected]", | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -35,6 +35,8 @@ msgid_bugs_address = [email protected] | |
mapping-file = babel.ini | ||
output-file = sonar/translations/messages.pot | ||
add-comments = NOTE | ||
no-location = True | ||
sort-output = True | ||
|
||
[init_catalog] | ||
input-file = sonar/translations/messages.pot | ||
|
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.