This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via a911534af580200c9b81e615aae797b4fdfbea12 (commit)
from 2a80639cb32c16bf4172719d9280f7c6f9c5bd57 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=a911534af580200c9b81e615aae797b4fdfbea12
commit a911534af580200c9b81e615aae797b4fdfbea12
Author: Franck Villaume <[email protected]>
Date: Sun Jul 7 18:34:47 2019 +0200
protect quota_management action: check for permission.
diff --git a/src/plugins/quota_management/action/update.php
b/src/plugins/quota_management/action/update.php
index 79369ff..35a3374 100644
--- a/src/plugins/quota_management/action/update.php
+++ b/src/plugins/quota_management/action/update.php
@@ -27,6 +27,11 @@
global $quota_management;
global $group_id;
+if ( !forge_check_global_perm('forge_admin')) {
+ $warning_msg = _('Quota Management Action Denied.');
+ redirect_url =
'/plugins/'.$quota_management->name.'/?group_id='.$group_id;
+}
+
require_once $gfcommon.'include/SysTasksQ.class.php';
$_quota_block_size = trim(shell_exec('echo $BLOCK_SIZE')) + 0;
diff --git
a/src/plugins/quota_management/cronjobs/quota_management-set_quota.php
b/src/plugins/quota_management/cronjobs/quota_management-set_quota.php
index 722422f..d7256e5 100644
--- a/src/plugins/quota_management/cronjobs/quota_management-set_quota.php
+++ b/src/plugins/quota_management/cronjobs/quota_management-set_quota.php
@@ -23,4 +23,6 @@
*/
require_once dirname(__FILE__) . '/../../../www/env.inc.php';
-require_once $gfcommon.'include/pre.php';
+require_once $gfcommon.'include/pre.php';
+
+#set quota per group_id
-----------------------------------------------------------------------
Summary of changes:
src/plugins/quota_management/action/update.php | 5 +++++
src/plugins/quota_management/cronjobs/quota_management-set_quota.php | 4 +++-
2 files changed, 8 insertions(+), 1 deletion(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits