The register.php is always accessible even if not institutions allow it

Bug #1717035 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Unassigned
17.10
Fix Released
Low
Unassigned

Bug Description

When an institution allows registration there is a 'Register' link at the bottom of the login box, which take you to the register.php page.

If there are no institutions allowing registration there is no link in login box, but yet you still can go to the register.php page directly and see the form.

The 'Institution' select box has no value so there is a pieform 'select' error.

What needs to be done is to not allow one to see the form if there is no institutions they can register to but rather just show them some generic message about 'Please use the 'contact us' form or something.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/8012

no longer affects: mahara/17.04
no longer affects: mahara/16.10
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8012
Committed: https://git.mahara.org/mahara/mahara/commit/0337f1871968946c5223b9c0894f6b53c9ac8ac0
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 0337f1871968946c5223b9c0894f6b53c9ac8ac0
Author: Robert Lyon <email address hidden>
Date: Thu Sep 14 09:08:14 2017 +1200

Bug 1717035: Checking if there are valid institutions

before displaying register form as count(false) = 1

behatnotneeded

Change-Id: Ic2e20d71ab024fddb85b7f1c0062db4e174283cc
Signed-off-by: Robert Lyon <email address hidden>

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.