add user page ignores quota entered by admin

Bug #783208 reported by Hugh Davenport
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Hugh Davenport

Bug Description

in admin/users/add.php

if you specify a quota different from the default, it gets ignored and the default quota is used instead.

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Actually it is bigger than this, the quota field in this page is ignored, and only sets it to the default setting...

Fix at https://reviews.mahara.org/172

Changed in mahara:
status: New → In Progress
assignee: nobody → Hugh Davenport (hugh-catalyst)
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Fix above doesn't actually check against max size, if a quota above maximum is given, that value is used, when it shouldn't (it should complain)

Revision history for this message
François Marier (fmarier) wrote :

Thanks for the patch Hugh.

I don't think we need to check that the quota is within the limit here. It's the admin adding the user account and they should probably be able to exceed the limit if they want to.

Changed in mahara:
status: In Progress → Fix Committed
milestone: none → 1.4.0
importance: Undecided → High
Revision history for this message
Hugh Davenport (hugh-davenport) wrote : Re: [Bug 783208] Re: when adding a new user with quota above maximum, no error is given

Hi Francois,

I was thinking that the limit may be needed, as if you are not the site
admin, but just an inst. admin, then you /shouldn't/ be able to override
the max setting. It could be that part of what I do is enforce it for
inst. admins only, and site admins get away with it.

Cheers,

Hugh

Revision history for this message
François Marier (fmarier) wrote : Re: when adding a new user with quota above maximum, no error is given

That's a good point. Institutional admins should probably not be able to exceed that limit.

Can you create a new bug for it? I'll rename this one to cover what your patch has already fixed.

summary: - when adding a new user with quota above maximum, no error is given
+ add user page ignores quota entered by admin
description: updated
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.