Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
8cbea4c7
Commit
8cbea4c7
authored
Aug 01, 2016
by
Son Nguyen
Committed by
Gerrit Code Review
Aug 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bug 1606094: Stop sending quota notifications to everyone"
parents
a083558a
2c262cdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
htdocs/admin/users/institutions.php
htdocs/admin/users/institutions.php
+1
-2
No files found.
htdocs/admin/users/institutions.php
View file @
8cbea4c7
...
...
@@ -796,13 +796,12 @@ function institution_submit(Pieform $form, $values) {
);
// get all the users from the institution and make sure that they are still below
// their quota threshold
if
(
$users
=
get_records_sql_array
(
'SELECT * FROM {usr} u
LEFT
JOIN {usr_institution} ui ON u.id = ui.usr AND ui.institution = ?'
,
array
(
$institution
)))
{
if
(
$users
=
get_records_sql_array
(
'SELECT * FROM {usr} u
INNER
JOIN {usr_institution} ui ON u.id = ui.usr AND ui.institution = ?'
,
array
(
$institution
)))
{
$quotanotifylimit
=
get_config_plugin
(
'artefact'
,
'file'
,
'quotanotifylimit'
);
if
(
$quotanotifylimit
<=
0
||
$quotanotifylimit
>=
100
)
{
$quotanotifylimit
=
100
;
}
foreach
(
$users
as
$user
)
{
$user
->
quota
=
$values
[
'defaultquota'
];
// check if the user has gone over the quota notify limit
$user
->
quotausedpercent
=
$user
->
quotaused
/
$user
->
quota
*
100
;
$overlimit
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment