mirror of
https://github.com/LdesignMedia/moodle-availability_ipaddress.git
synced 2026-05-16 21:41:28 +02:00
Merge pull request #10 from LdesignMedia/86c2xmcmw-upgrade-45
86c2xmcmw upgrade 45
This commit is contained in:
@@ -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.
|
activity, making it accessible only to users from specified IP addresses.
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||

|

|
||||||
|
|
||||||
* Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
* Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/)
|
||||||
* Min. required: Moodle 4.0
|
* Min. required: Moodle 4.0
|
||||||
@@ -14,6 +14,7 @@ activity, making it accessible only to users from specified IP addresses.
|
|||||||

|

|
||||||

|

|
||||||

|

|
||||||
|

|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
@@ -57,6 +58,7 @@ Contributions are welcome and will be fully credited. We accept contributions vi
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
- 2025040400 Tested on Moodle 4.5
|
||||||
- 2024072000 Tested on Moodle 4.4
|
- 2024072000 Tested on Moodle 4.4
|
||||||
- 2022021100 Thanks for adding ip-range support @[juacas](https://github.com/juacas)
|
- 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)
|
- 2022052800 Fixed the [issue 6](https://github.com/ldesignmediaNL/moodle-availability_ipaddress/issues/6) @[hamzatamyachte](https://github.com/hamzatamyachte)
|
||||||
|
|||||||
@@ -112,9 +112,7 @@ class condition extends \core_availability\condition {
|
|||||||
* @param bool $not Set true if we are inverting the condition
|
* @param bool $not Set true if we are inverting the condition
|
||||||
* @param info $info Item we're checking
|
* @param info $info Item we're checking
|
||||||
*
|
*
|
||||||
* @return string Information string (for admin) about all restrictions on
|
* @return string Information string (for admin) about all restrictions on this item
|
||||||
* this item
|
|
||||||
* @throws \coding_exception
|
|
||||||
*/
|
*/
|
||||||
public function get_description($full, $not, info $info): string {
|
public function get_description($full, $not, info $info): string {
|
||||||
return get_string('require_condition', 'availability_ipaddress', getremoteaddr());
|
return get_string('require_condition', 'availability_ipaddress', getremoteaddr());
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
defined('MOODLE_INTERNAL') || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
$plugin->component = 'availability_ipaddress';
|
$plugin->component = 'availability_ipaddress';
|
||||||
$plugin->version = 2024072001;
|
$plugin->version = 2025040400;
|
||||||
$plugin->release = '4.4.1';
|
$plugin->release = '4.5.0';
|
||||||
$plugin->requires = 2016120500;
|
$plugin->requires = 2016120500;
|
||||||
$plugin->maturity = MATURITY_STABLE;
|
$plugin->maturity = MATURITY_STABLE;
|
||||||
$plugin->supported = [400, 404];
|
$plugin->supported = [400, 405];
|
||||||
|
|||||||
Reference in New Issue
Block a user