Compare commits

...
16 Commits
Author SHA1 Message Date
Luuk Verhoeven 150067f43d Update CHANGELOG.md 2026-10-14 10:51:13 +02:00
Luuk Verhoeven b1f0bc2f09 Update version.php 2026-10-14 10:49:32 +02:00
Nihaal Shaikh 9269cb7f76 Merge pull request #21 from minhduchoang195/#20_fix_failed_unittest
#20 Correct db/install.xml so that the unit test passes successfully.
2026-10-14 10:27:27 +02:00
Hoang, Minh Duc 2210e85ca0 #20 Add the required attribute sequence to each field 2026-10-12 12:56:11 +02:00
Luuk Verhoeven 6b24f4a2b9 Merge pull request #19 from LdesignMedia/124cwve5xb7-upgrade-52-53
124cwve5xb7 upgrade 52 53
2026-09-23 14:08:29 +02:00
Nihaal Shaikh 00941bbc54 Update #124cwve5xb7 - Bump release to 5.3.0 for Moodle 5.3 support 2026-09-23 11:34:38 +02:00
Nihaal Shaikh cf5409707f Update #124cwve5xb7 - Bump release to 5.2.0 for Moodle 5.2 support 2026-09-23 11:01:30 +02:00
Luuk Verhoeven d730ed97fd Merge pull request #17 from LdesignMedia/86c7xvd2d-improve-plugin-visibility
Update #86c7xvd2d - Polish plugin for improved visibility
2026-03-30 11:25:44 +02:00
Hamza Tamyachte 474f91ccbc Update #86c7xvd2d - Polish plugin for improved visibility
- Remove TODO section from README
- Add SECURITY.md
- Update FUNDING.yml to LdesignMedia
2026-03-21 03:04:04 +01:00
Hamza Tamyachte d65fd40621 Update #86c89ftg9 - Bump release to 5.1.1 for plugin availability_ipaddress 2026-03-18 10:21:56 +01:00
Hamza Tamyachte 4632008dfb Update CHANGELOG.md 2026-03-18 10:19:50 +01:00
Hamza Tamyachte c91646df81 Merge pull request #16 from LdesignMedia/86c89ftg9-fix-php-version-compat
Fix #86c89ftg9 - Remove PHP 7.4 typed properties for PHP 7.3 compatibility
2026-03-18 10:17:06 +01:00
Hamza Tamyachte d2c231e657 Merge branch 'main' into 86c89ftg9-fix-php-version-compat 2026-03-18 10:16:46 +01:00
Hamza Tamyachte 700820480d Update #86c89ftg9 - Bump version to 2026031800 for plugin availability_ipaddress 2026-03-18 10:13:19 +01:00
Hamza Tamyachte cccebb6c15 Update #86c89ftg9 - Reorganise changelog and update PHP compatibility docs 2026-03-15 22:35:39 +01:00
Hamza Tamyachte af275d1699 Fix #86c89ftg9 - Remove PHP 7.4 typed properties for PHP 7.3 compatibility
Remove typed property declarations to prevent fatal parse errors on
Moodle 4.0.x servers running PHP 7.3. Lower environment.xml PHP
requirement from 7.4 to 7.3.

Fixes #13
2026-03-15 22:22:16 +01:00
9 changed files with 69 additions and 19 deletions

No files matched your search

+1 -1
View File
@@ -1 +1 @@
github: [MFreakNL]
github: [LdesignMedia]
View File
Whitespace-only changes.
+15 -1
View File
@@ -1,5 +1,19 @@
# Changelog
## 5.3.1 (2026101400)
- Solved CI tests https://github.com/LdesignMedia/moodle-availability_ipaddress/issues/20 | Thanks @minhduchoang195
## 5.3.0 (2026092300)
- Tested and verified on Moodle 5.3
## 5.2.0 (2026031802)
- Tested and verified on Moodle 5.2
## 5.1.1 (2026031800)
* Fixed PHP 7.3 compatibility issue that broke Moodle 4.0.x servers ([#13](https://github.com/LdesignMedia/moodle-availability_ipaddress/issues/13))
* Removed typed properties (PHP 7.4+) to support PHP 7.3+
* Lowered environment.xml PHP requirement from 7.4 to 7.3
## 5.1.0 (2026030300)
- Tested and verified on Moodle 5.1
@@ -21,5 +35,5 @@
## 4.0.2 (2022052800)
- Fixed the [issue 6](https://github.com/ldesignmediaNL/moodle-availability_ipaddress/issues/6) @[hamzatamyachte](https://github.com/hamzatamyachte)
## 4.0.1 (2022021100)
## 3.9.0 (2022021100)
- Thanks for adding ip-range support @[juacas](https://github.com/juacas)
+5 -5
View File
@@ -11,7 +11,7 @@ activity, making it accessible only to users from specified IP addresses.
* Author: Luuk Verhoeven, [ldesignmedia.nl](https://ldesignmedia.nl/)
* Author: Vincent Cornelis, [ldesignmedia.nl](https://ldesignmedia.nl/)
* Min. required: Moodle 4.0
* Supports PHP: 7.4
* Supports PHP: 7.3+
![Moodle400](https://img.shields.io/badge/moodle-4.0-F98012.svg?logo=moodle)
![Moodle401](https://img.shields.io/badge/moodle-4.1-F98012.svg?logo=moodle)
@@ -21,7 +21,10 @@ activity, making it accessible only to users from specified IP addresses.
![Moodle405](https://img.shields.io/badge/moodle-4.5-F98012.svg?logo=moodle)
![Moodle500](https://img.shields.io/badge/moodle-5.0-F98012.svg?logo=moodle)
![Moodle501](https://img.shields.io/badge/moodle-5.1-F98012.svg?logo=moodle)
![Moodle502](https://img.shields.io/badge/moodle-5.2-F98012.svg?logo=moodle)
![Moodle503](https://img.shields.io/badge/moodle-5.3-F98012.svg?logo=moodle)
![PHP7.3](https://img.shields.io/badge/PHP-7.3-777BB4.svg?logo=php)
![PHP7.4](https://img.shields.io/badge/PHP-7.4-777BB4.svg?logo=php)
![PHP8.0](https://img.shields.io/badge/PHP-8.0-777BB4.svg?logo=php)
![PHP8.1](https://img.shields.io/badge/PHP-8.1-777BB4.svg?logo=php)
@@ -48,9 +51,6 @@ activity, making it accessible only to users from specified IP addresses.
1. The users with matching ip addresses can view the activity.
5. Save the activity
## TODO
- Behat tests ip validation
## Security
If you discover any security related issues, please email [[email protected]](mailto:[email protected]) instead of using the issue tracker.
@@ -63,6 +63,6 @@ The GNU GENERAL PUBLIC LICENSE. Please see [License File](LICENSE) for more info
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.
## Changelog
### Changelog
See [CHANGELOG.md](CHANGELOG.md) for a full list of changes.
+36
View File
@@ -0,0 +1,36 @@
# Security Policy
At `Ldesign Media`, we take the security of our software very seriously. This policy outlines the steps we take to ensure the security of our software and how you can help us keep it secure.
## Supported Versions
To ensure the best security for our users, we only provide support for the latest version of our software.
## Reporting a Vulnerability
If you discover a security vulnerability in our software, we kindly ask that you report it to us as soon as possible by sending an email to `[email protected]`. Please do not use the issue tracker for reporting security vulnerabilities.
We will make every effort to investigate and resolve the vulnerability in a timely manner.
When reporting a vulnerability, please include the following information (as much as you can provide) to help us better understand the nature and scope of the issue:
- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
- Full paths of source file(s) related to the manifestation of the issue
- The location of the affected source code (tag/branch/commit or direct URL)
- Any special configuration required to reproduce the issue
- Step-by-step instructions to reproduce the issue
- Proof-of-concept or exploit code (if possible)
- Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
## Rewards
We do not currently have a bug bounty program, but we are grateful for any responsible disclosures of security vulnerabilities. Your efforts help make our software safer for everyone.
## Communication
When a security vulnerability has been discovered and addressed, we will provide updates to the community as soon as possible to keep everyone informed.
## Acknowledgements
We would like to extend our gratitude to the security researchers who have helped us improve the security of our software by responsibly reporting security vulnerabilities to us. Your contributions are invaluable to maintaining a safe and secure environment for our users.
+2 -2
View File
@@ -41,14 +41,14 @@ class condition extends \core_availability\condition {
*
* @var string
*/
protected string $ipaddresses = '';
protected $ipaddresses = '';
/**
* Predefined IP address ranges.
*
* @var array
*/
protected array $predefinedranges = [];
protected $predefinedranges = [];
/**
* condition constructor.
+6 -6
View File
@@ -7,12 +7,12 @@
<TABLE NAME="availability_ipaddress_pre" COMMENT="Stores predefined IP address ranges for availability_ipaddress">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" COMMENT="Display name for the IP range"/>
<FIELD NAME="ipaddresses" TYPE="text" NOTNULL="true" COMMENT="Comma-separated list of IP addresses/ranges"/>
<FIELD NAME="description" TYPE="text" NOTNULL="false" COMMENT="Optional description of this IP range"/>
<FIELD NAME="enabled" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" COMMENT="Whether this range is available for selection"/>
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0"/>
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0"/>
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" COMMENT="Display name for the IP range" SEQUENCE="false"/>
<FIELD NAME="ipaddresses" TYPE="text" NOTNULL="true" COMMENT="Comma-separated list of IP addresses/ranges" SEQUENCE="false"/>
<FIELD NAME="description" TYPE="text" NOTNULL="false" COMMENT="Optional description of this IP range" SEQUENCE="false"/>
<FIELD NAME="enabled" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" COMMENT="Whether this range is available for selection" SEQUENCE="false"/>
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<COMPATIBILITY_MATRIX>
<PLUGIN name="availability_ipaddress">
<PHP version="7.4" level="required"/>
<PHP version="7.3" level="required"/>
</PLUGIN>
</COMPATIBILITY_MATRIX>
+3 -3
View File
@@ -27,8 +27,8 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'availability_ipaddress';
$plugin->version = 2026030300;
$plugin->release = '5.1.0';
$plugin->version = 2026101400;
$plugin->release = '5.3.1';
$plugin->requires = 2016120500;
$plugin->maturity = MATURITY_STABLE;
$plugin->supported = [400, 501];
$plugin->supported = [400, 503];