Jump to content

Restrict Registration Form


Recommended Posts

Hello,

In my virtual airline'm using a separate system PHPVMS to the evaluation and admission of new crew. (And a kind of training center)

I would like to leave the PHPVMS the registration page restricted to staff.

After the pilot is approved in the proof of the training center, a staff makes the registration manually in PHPVMS.

Edited by eliezerazevedo
Link to post
Share on other sites

core/modules/Registration/Registration.php

find this

$this->render('registration_mainform.tpl');

replace it with this

if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) {
$this->render('registration_mainform.tpl');
} else {
echo 'Not Authorised!';
}

I see now, they are not logged in, ha. (get forgetful once every while)

Edited by web541
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...