diff --git a/README.md b/README.md index 2db4658..df22154 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Enhance activity security by restricting access based on IP address. This plugin activity, making it accessible only to users from specified IP addresses. ## Author -![ldesignmedia.nl](http://ldesignmedia.nl/logo_small.png) +![MFreak.nl](https://MFreak.nl/logo_small.png) * Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/) * Min. required: Moodle 4.0 @@ -14,6 +14,7 @@ activity, making it accessible only to users from specified IP addresses. ![Moodle402](https://img.shields.io/badge/moodle-4.2-brightgreen.svg?logo=moodle) ![Moodle403](https://img.shields.io/badge/moodle-4.3-brightgreen.svg?logo=moodle) ![Moodle404](https://img.shields.io/badge/moodle-4.4-brightgreen.svg?logo=moodle) +![Moodle405](https://img.shields.io/badge/moodle-4.5-brightgreen.svg?logo=moodle) ![PHP7.4](https://img.shields.io/badge/PHP-7.4-brightgreen.svg?logo=php) ![PHP8.0](https://img.shields.io/badge/PHP-8.0-brightgreen.svg?logo=php) @@ -57,6 +58,7 @@ Contributions are welcome and will be fully credited. We accept contributions vi ## Changelog +- 2025040400 Tested on Moodle 4.5 - 2024072000 Tested on Moodle 4.4 - 2022021100 Thanks for adding ip-range support @[juacas](https://github.com/juacas) - 2022052800 Fixed the [issue 6](https://github.com/ldesignmediaNL/moodle-availability_ipaddress/issues/6) @[hamzatamyachte](https://github.com/hamzatamyachte) diff --git a/classes/condition.php b/classes/condition.php index d6fbdc8..855a48b 100644 --- a/classes/condition.php +++ b/classes/condition.php @@ -112,9 +112,7 @@ class condition extends \core_availability\condition { * @param bool $not Set true if we are inverting the condition * @param info $info Item we're checking * - * @return string Information string (for admin) about all restrictions on - * this item - * @throws \coding_exception + * @return string Information string (for admin) about all restrictions on this item */ public function get_description($full, $not, info $info): string { return get_string('require_condition', 'availability_ipaddress', getremoteaddr()); diff --git a/version.php b/version.php index f2e7135..325a3aa 100644 --- a/version.php +++ b/version.php @@ -27,8 +27,8 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'availability_ipaddress'; -$plugin->version = 2024072001; -$plugin->release = '4.4.1'; +$plugin->version = 2025040400; +$plugin->release = '4.5.0'; $plugin->requires = 2016120500; $plugin->maturity = MATURITY_STABLE; -$plugin->supported = [400, 404]; +$plugin->supported = [400, 405];