Skip to content

Commit a787114

Browse files
committed
remove private_content module dependency
1 parent 3973660 commit a787114

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

TESTING.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Any additional modules required will be enabled as a dependency of the custom _*
2020

2121
1. Install **ubc_cwl_auth** module, with dependencies, into a Drupal 10 site. Check for:
2222
- all dependent modules have been installed
23-
- the CWL role has been added, and has **access private content** permissions
23+
- the CWL role has been added
2424
- the Visibility taxonomy vocab has been added
2525
- the Visibility taxonomy vocab contains 2 terms called General and CWL
2626
- General has Allowed Roles of Anonymous and Authenticated
@@ -55,11 +55,6 @@ Any additional modules required will be enabled as a dependency of the custom _*
5555

5656
**Method** : Create a content type and provide **Entity Bundle Permissions** to enable CWL users to access. Anonymous users should not be able to access; instead should see 403 page with message and CWL Login link.
5757

58-
2. Using a content type that is accessible to anonymous users, configure a single node to be accessible by CWL users.
59-
60-
**Dependencies** : private_content
61-
62-
**Method** : Configure permissions for CWL users to **access private content**. Enable a single node to be private. Anonymous users should not be able to access; instead should see 403 page with message and CWL Login link.
6358

6459
### Views
6560

@@ -69,11 +64,6 @@ Any additional modules required will be enabled as a dependency of the custom _*
6964

7065
**Method** : Create View and test Anonymous and CWL users for access
7166

72-
2. Create a View, and configure Access to be Permission: **access private content**
73-
74-
**Dependencies** : private_content
75-
76-
**Method** : Create View and test Anonymous and CWL users for access
7767

7868
### Private Files
7969

config/install/user.role.cwl.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
langcode: en
22
status: true
3-
dependencies:
4-
module:
5-
- private_content
63
_core:
74
default_config_hash: Dl0dm2Fq7q19OMgW5Poy6CbBmyPayHWn0nzDbsVNqJI
85
id: cwl
96
label: CWL
107
weight: -8
118
is_admin: false
12-
permissions:
13-
- 'access private content'

ubc_cwl_auth.info.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ core_version_requirement: ^10.1 || ^11
77
dependencies:
88
- private_files_download_permission:pfdp
99
- entity_bundle_permissions:entity_bundle_permissions
10-
- private_content:private_content
1110
- permissions_by_term:permissions_by_term

0 commit comments

Comments
 (0)