Skip to content

Commit

Permalink
D8CORE-7362 Add necessary permission for site embedder role (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Apr 9, 2024
1 parent 236052c commit ee63efa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/sync/user.role.su_site_embedder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ status: true
dependencies:
module:
- field_permissions
- stanford_media
id: su_site_embedder
label: 'Site Embedder'
weight: 1
is_admin: false
permissions:
- 'bypass embed field validation'
- 'create field_media_embeddable_code'
- 'edit field_media_embeddable_code'
- 'edit own field_media_embeddable_code'
4 changes: 4 additions & 0 deletions tests/codeception/acceptance/Media/MediaPermissionsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public function testSiteEmbedderPerms(AcceptanceTester $I) {
$I->canSeeResponseCodeIs(200);
$I->canSee('oEmbed URL');
$I->canSee('Embed Code');
$I->fillField('Name', $this->faker->words(3, TRUE));
$I->fillField('Embed Code', '<script>console.log("test")</script>');
$I->click('Save');
$I->canSee('has been created');
}

/**
Expand Down

0 comments on commit ee63efa

Please sign in to comment.