Skip to content

Commit

Permalink
SDSS-1358: Allow all editors to use Related Content field (#480)
Browse files Browse the repository at this point in the history
* SDSS-1358: Allow all editors to use Related Content field.
  • Loading branch information
buttonwillowsix authored Aug 28, 2024
1 parent f8fbd72 commit f9ef95d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ langcode: en
status: true
dependencies:
module:
- field_permissions
- node
third_party_settings:
field_permissions:
permission_type: custom
id: node.su_sdss_related_content
field_name: su_sdss_related_content
entity_type: node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,18 +393,6 @@ public function testSearchResult(AcceptanceTester $I) {
$I->canSee('Last Updated: ' . $date_string);
}

public function testRelatedContent(AcceptanceTester $I){
// A quick test to make sure it's only visible to administrators.
$I->logInWithRole('contributor');
$I->amOnPage('/node/add/stanford_page');
$I->cantSee('Related Content');
$I->amOnPage('/user/logout');
$I->runDrush('cr');
$I->logInWithRole('administrator');
$I->amOnPage('/node/add/stanford_page');
$I->canSee('Related Content');
}

protected static function getTimezone() {
return \Drupal::config('system.date')
->get('timezone.default') ?: @date_default_timezone_get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,4 @@ public function testJournalPublisher(AcceptanceTester $I) {
$I->canSee('Publisher');
}

public function testRelatedContent(AcceptanceTester $I){
// A quick test to make sure it's only visible to administrators.
$I->logInWithRole('contributor');
$I->amOnPage('/node/add/stanford_publication');
$I->cantSee('Related Content');
$I->amOnPage('/user/logout');
$I->runDrush('cr');
$I->logInWithRole('administrator');
$I->amOnPage('/node/add/stanford_publication');
$I->canSee('Related Content');
}

}

0 comments on commit f9ef95d

Please sign in to comment.