Compare commits

...

2 Commits

Author SHA1 Message Date
Bachir Soussi Chiadmi 64c5b7af6d updated core 2023-05-03 15:26:07 +02:00
Bachir Soussi Chiadmi a799ce2446 fixes #2213, implements #2112 2023-05-03 15:10:59 +02:00
7 changed files with 218 additions and 64 deletions

View File

@ -26,6 +26,7 @@
"drupal/core-composer-scaffold": "^9",
"drupal/core-project-message": "^9",
"drupal/core-recommended": "^9",
"drupal/entity_limit": "^2.0@alpha",
"drupal/flexible_permissions": "@beta",
"drupal/genpass": "^1.1",
"drupal/graphql": "4.x-dev@dev",

148
src/composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "f3baae79e847c753ab9ac766f4338529",
"content-hash": "f874a1a846eacffa0d31c1312d5e160a",
"packages": [
{
"name": "alchemy/zippy",
@ -3937,16 +3937,16 @@
},
{
"name": "drupal/core",
"version": "9.5.5",
"version": "9.5.8",
"source": {
"type": "git",
"url": "https://github.com/drupal/core.git",
"reference": "eae5e76a8b403cbd42b3465f567313b52d78b0dc"
"reference": "a9a1e4e1fe23fb8c83fd6aeafb740c1462a218fc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/drupal/core/zipball/eae5e76a8b403cbd42b3465f567313b52d78b0dc",
"reference": "eae5e76a8b403cbd42b3465f567313b52d78b0dc",
"url": "https://api.github.com/repos/drupal/core/zipball/a9a1e4e1fe23fb8c83fd6aeafb740c1462a218fc",
"reference": "a9a1e4e1fe23fb8c83fd6aeafb740c1462a218fc",
"shasum": ""
},
"require": {
@ -4098,13 +4098,13 @@
],
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"support": {
"source": "https://github.com/drupal/core/tree/9.5.5"
"source": "https://github.com/drupal/core/tree/9.5.8"
},
"time": "2023-03-15T14:30:25+00:00"
"time": "2023-04-19T16:14:39+00:00"
},
{
"name": "drupal/core-composer-scaffold",
"version": "9.5.5",
"version": "9.5.8",
"source": {
"type": "git",
"url": "https://github.com/drupal/core-composer-scaffold.git",
@ -4148,13 +4148,13 @@
"drupal"
],
"support": {
"source": "https://github.com/drupal/core-composer-scaffold/tree/9.5.5"
"source": "https://github.com/drupal/core-composer-scaffold/tree/9.5.8"
},
"time": "2023-03-09T21:29:23+00:00"
},
{
"name": "drupal/core-project-message",
"version": "9.5.5",
"version": "9.5.8",
"source": {
"type": "git",
"url": "https://github.com/drupal/core-project-message.git",
@ -4189,22 +4189,22 @@
"drupal"
],
"support": {
"source": "https://github.com/drupal/core-project-message/tree/9.5.5"
"source": "https://github.com/drupal/core-project-message/tree/9.5.8"
},
"time": "2022-02-24T17:40:53+00:00"
},
{
"name": "drupal/core-recommended",
"version": "9.5.5",
"version": "9.5.8",
"source": {
"type": "git",
"url": "https://github.com/drupal/core-recommended.git",
"reference": "3c1d205349407e706cc89f56aa34448742fe81b4"
"reference": "74db3999d3432b7433b399fe76fa6ff6f126bed9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/drupal/core-recommended/zipball/3c1d205349407e706cc89f56aa34448742fe81b4",
"reference": "3c1d205349407e706cc89f56aa34448742fe81b4",
"url": "https://api.github.com/repos/drupal/core-recommended/zipball/74db3999d3432b7433b399fe76fa6ff6f126bed9",
"reference": "74db3999d3432b7433b399fe76fa6ff6f126bed9",
"shasum": ""
},
"require": {
@ -4213,7 +4213,7 @@
"doctrine/annotations": "~1.13.3",
"doctrine/lexer": "~1.2.3",
"doctrine/reflection": "~1.2.3",
"drupal/core": "9.5.5",
"drupal/core": "9.5.8",
"egulias/email-validator": "~3.2.1",
"guzzlehttp/guzzle": "~6.5.8",
"guzzlehttp/promises": "~1.5.2",
@ -4275,9 +4275,9 @@
],
"description": "Core and its dependencies with known-compatible minor versions. Require this project INSTEAD OF drupal/core.",
"support": {
"source": "https://github.com/drupal/core-recommended/tree/9.5.5"
"source": "https://github.com/drupal/core-recommended/tree/9.5.8"
},
"time": "2023-03-15T14:30:25+00:00"
"time": "2023-04-19T16:14:39+00:00"
},
{
"name": "drupal/cshs",
@ -5184,6 +5184,62 @@
"source": "https://git.drupalcode.org/project/entity_clone"
}
},
{
"name": "drupal/entity_limit",
"version": "2.0.0-alpha3",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/entity_limit.git",
"reference": "8.x-2.0-alpha3"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/entity_limit-8.x-2.0-alpha3.zip",
"reference": "8.x-2.0-alpha3",
"shasum": "a8f6150836414398a6c55d810b5c9afd723d645d"
},
"require": {
"drupal/core": "^8 || ^9"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-2.0-alpha3",
"datestamp": "1667703283",
"security-coverage": {
"status": "not-covered",
"message": "Alpha releases are not covered by Drupal security advisories."
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "gaurav.goyal",
"homepage": "https://www.drupal.org/user/2497208"
},
{
"name": "purushotam.rai",
"homepage": "https://www.drupal.org/user/3193859"
},
{
"name": "vyasamit2007",
"homepage": "https://www.drupal.org/user/246119"
},
{
"name": "wasare",
"homepage": "https://www.drupal.org/user/18262"
}
],
"description": "Allow administrators to restrict the number of entities that may be created based on different conditions.",
"homepage": "https://www.drupal.org/project/entity_limit",
"support": {
"source": "https://git.drupalcode.org/project/entity_limit"
}
},
{
"name": "drupal/entity_reference_revisions",
"version": "1.10.0",
@ -9704,16 +9760,16 @@
},
{
"name": "guzzlehttp/psr7",
"version": "1.9.0",
"version": "1.9.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "e98e3e6d4f86621a9b75f623996e6bbdeb4b9318"
"reference": "e4490cabc77465aaee90b20cfc9a770f8c04be6b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/e98e3e6d4f86621a9b75f623996e6bbdeb4b9318",
"reference": "e98e3e6d4f86621a9b75f623996e6bbdeb4b9318",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/e4490cabc77465aaee90b20cfc9a770f8c04be6b",
"reference": "e4490cabc77465aaee90b20cfc9a770f8c04be6b",
"shasum": ""
},
"require": {
@ -9732,11 +9788,6 @@
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.9-dev"
}
},
"autoload": {
"files": [
"src/functions_include.php"
@ -9794,7 +9845,7 @@
],
"support": {
"issues": "https://github.com/guzzle/psr7/issues",
"source": "https://github.com/guzzle/psr7/tree/1.9.0"
"source": "https://github.com/guzzle/psr7/tree/1.9.1"
},
"funding": [
{
@ -9810,7 +9861,7 @@
"type": "tidelift"
}
],
"time": "2022-06-20T21:43:03+00:00"
"time": "2023-04-17T16:00:37+00:00"
},
{
"name": "kint-php/kint",
@ -10580,16 +10631,16 @@
},
{
"name": "pear/pear-core-minimal",
"version": "v1.10.11",
"version": "v1.10.13",
"source": {
"type": "git",
"url": "https://github.com/pear/pear-core-minimal.git",
"reference": "68d0d32ada737153b7e93b8d3c710ebe70ac867d"
"reference": "aed862e95fd286c53cc546734868dc38ff4b5b1d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pear/pear-core-minimal/zipball/68d0d32ada737153b7e93b8d3c710ebe70ac867d",
"reference": "68d0d32ada737153b7e93b8d3c710ebe70ac867d",
"url": "https://api.github.com/repos/pear/pear-core-minimal/zipball/aed862e95fd286c53cc546734868dc38ff4b5b1d",
"reference": "aed862e95fd286c53cc546734868dc38ff4b5b1d",
"shasum": ""
},
"require": {
@ -10624,7 +10675,7 @@
"issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=PEAR",
"source": "https://github.com/pear/pear-core-minimal"
},
"time": "2021-08-10T22:31:03+00:00"
"time": "2023-04-19T19:15:47+00:00"
},
{
"name": "pear/pear_exception",
@ -10946,21 +10997,21 @@
},
{
"name": "psr/http-factory",
"version": "1.0.1",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-factory.git",
"reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
"reference": "e616d01114759c4c489f93b099585439f795fe35"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
"reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
"url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35",
"reference": "e616d01114759c4c489f93b099585439f795fe35",
"shasum": ""
},
"require": {
"php": ">=7.0.0",
"psr/http-message": "^1.0"
"psr/http-message": "^1.0 || ^2.0"
},
"type": "library",
"extra": {
@ -10980,7 +11031,7 @@
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interfaces for PSR-7 HTTP message factories",
@ -10995,9 +11046,9 @@
"response"
],
"support": {
"source": "https://github.com/php-fig/http-factory/tree/master"
"source": "https://github.com/php-fig/http-factory/tree/1.0.2"
},
"time": "2019-04-30T12:38:16+00:00"
"time": "2023-04-10T20:10:41+00:00"
},
{
"name": "psr/http-message",
@ -14033,16 +14084,16 @@
},
{
"name": "symfony/var-dumper",
"version": "v5.4.21",
"version": "v5.4.23",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "6c5ac3a1be8b849d59a1a77877ee110e1b55eb74"
"reference": "9a8a5b6d6508928174ded2109e29328a55342a42"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/6c5ac3a1be8b849d59a1a77877ee110e1b55eb74",
"reference": "6c5ac3a1be8b849d59a1a77877ee110e1b55eb74",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/9a8a5b6d6508928174ded2109e29328a55342a42",
"reference": "9a8a5b6d6508928174ded2109e29328a55342a42",
"shasum": ""
},
"require": {
@ -14102,7 +14153,7 @@
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v5.4.21"
"source": "https://github.com/symfony/var-dumper/tree/v5.4.23"
},
"funding": [
{
@ -14118,7 +14169,7 @@
"type": "tidelift"
}
],
"time": "2023-02-23T10:00:28+00:00"
"time": "2023-04-18T09:26:27+00:00"
},
{
"name": "symfony/yaml",
@ -14604,6 +14655,7 @@
"minimum-stability": "stable",
"stability-flags": {
"drupal/audiofield": 20,
"drupal/entity_limit": 15,
"drupal/flexible_permissions": 10,
"drupal/graphql": 20,
"drupal/group": 20,

View File

@ -51,6 +51,7 @@ module:
entity: 0
entity_browser: 0
entity_browser_enhanced: 0
entity_limit: 0
entity_reference_revisions: 0
field: 0
field_group: 0

View File

@ -0,0 +1,17 @@
uuid: 6df89594-cb4e-47b5-aba6-36de29c5b5e9
langcode: fr
status: true
dependencies: { }
id: concernement
label: concernement
weight: 0
plugin: role_limit
entity_type: node
entity_bundles:
concernement: concernement
entite: '0'
static: '0'
limits:
-
id: authenticated
limit: 1

View File

@ -0,0 +1,17 @@
uuid: 2aa643b1-1d91-4bc4-86f7-21bd98dd8835
langcode: fr
status: true
dependencies: { }
id: concernement_pour_admin_figuresl
label: 'concernement pour admin@figureslibres.io'
weight: 0
plugin: user_limit
entity_type: node
entity_bundles:
concernement: concernement
entite: '0'
static: '0'
limits:
-
id: '2'
limit: -1

View File

@ -2,10 +2,13 @@ uuid: f8555968-3235-4ab5-8996-bb5deea257b9
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_confidentialite
module:
- gnode
- group
- node
- options
_core:
default_config_hash: 50gd6UKSddlPxEUbaEG7l1ZHe5Akog488RFK-jAUkCM
id: group_nodes
@ -154,17 +157,80 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
status:
id: status
table: node_field_data
field: status
uid:
id: uid
table: group_relationship_field_data
field: uid
relationship: group_relationship
group_type: group
admin_label: ''
entity_type: group_relationship
entity_field: uid
plugin_id: field
label: 'Group relationship creator'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: entity_reference_label
settings:
link: true
group_column: target_id
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
field_confidentialite:
id: field_confidentialite
table: node__field_confidentialite
field: field_confidentialite
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: status
plugin_id: field
label: Status
label: Confidentialité
exclude: false
alter:
alter_text: false
@ -206,11 +272,8 @@ display:
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: boolean
settings:
format: custom
format_custom_false: Unpublished
format_custom_true: Published
type: list_default
settings: { }
group_column: value
group_columns: { }
group_rows: true
@ -925,7 +988,8 @@ display:
- url.query_args
- user.group_permissions
- 'user.node_grants:view'
tags: { }
tags:
- 'config:field.storage.node.field_confidentialite'
page_1:
id: page_1
display_title: Page
@ -954,4 +1018,5 @@ display:
- url.query_args
- user.group_permissions
- 'user.node_grants:view'
tags: { }
tags:
- 'config:field.storage.node.field_confidentialite'

View File

@ -2,9 +2,10 @@ admin_menus.concernement_add:
route_name: node.add
route_parameters:
node_type: 'concernement'
title: 'Add Concernement'
title: 'Ajouter un concernement'
appears_on:
- view.admin_nodes.page_1
- view.user_contents.page_1
admin_menus.entite_add:
route_name: node.add