__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@core @core_contentbank
Feature: Access permission to content Bank
In order to control access to content bank
As an admin
I need to be able to configure users' permissions
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | user1@example.com |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
Scenario: Admins access content bank
Given I log in as "admin"
And I am on "Course 1" course homepage
Then "Content bank" "link" should exist
Scenario: Editing teachers can access content bank at course level
Given I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
Then "Content bank" "link" should exist
Scenario: Editing teachers can't access content bank at system level
Given I log in as "teacher1"
Then "Content bank" "link" should not exist
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| access_permissions.feature | File | 1.11 KB | 0777 |
|
| copy_content.feature | File | 9.44 KB | 0777 |
|
| customfields.feature | File | 1.9 KB | 0777 |
|
| delete_content.feature | File | 4.06 KB | 0777 |
|
| download_content.feature | File | 3.2 KB | 0777 |
|
| edit_content.feature | File | 10.42 KB | 0777 |
|
| events.feature | File | 3.33 KB | 0777 |
|
| navigate_content.feature | File | 5.63 KB | 0777 |
|
| search_content.feature | File | 3.45 KB | 0777 |
|
| sort_content.feature | File | 3.69 KB | 0777 |
|
| view_preferences.feature | File | 3 KB | 0777 |
|
| visibility.feature | File | 8.93 KB | 0777 |
|