Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
286ce9ea
Commit
286ce9ea
authored
Dec 12, 2007
by
Richard Mansfield
Browse files
Only check registerallowed for institution requests
parent
294935d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/account/index.php
View file @
286ce9ea
...
...
@@ -186,7 +186,7 @@ function accountprefs_submit(Pieform $form, $values) {
// Institution forms
$institutions
=
get_records_assoc
(
'institution'
,
'
registerallowed
'
,
1
,
''
,
'name,displayname'
);
$institutions
=
get_records_assoc
(
'institution'
,
''
,
''
,
''
,
'name,displayname'
);
// For all institutions the user is already a member of, create a
// button to leave the institution
...
...
@@ -328,7 +328,9 @@ if (!empty($institutions) &&
(
get_config
(
'usersallowedmultipleinstitutions'
)
||
empty
(
$member
)))
{
$options
=
array
();
foreach
(
$institutions
as
$i
)
{
$options
[
$i
->
name
]
=
$i
->
displayname
;
if
(
$i
->
registerallowed
)
{
$options
[
$i
->
name
]
=
$i
->
displayname
;
}
}
$joinform
=
pieform
(
array
(
'name'
=>
'requestmembership'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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