Skip to content
GitLab
Menu
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
a1570291
Commit
a1570291
authored
Jan 09, 2008
by
Richard Mansfield
Browse files
Don't expect remote username to be set when editing user accounts
parent
97194d3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/users/edit.php
View file @
a1570291
...
...
@@ -215,8 +215,9 @@ function edituser_site_submit(Pieform $form, $values) {
if
(
!
$remotename
)
{
$remotename
=
$user
->
username
;
}
if
(
isset
(
$values
[
'authinstance'
])
&&
(
$values
[
'authinstance'
]
!=
$user
->
authinstance
||
$values
[
'remoteusername'
]
!=
$remotename
))
{
if
(
isset
(
$values
[
'authinstance'
])
&&
(
$values
[
'authinstance'
]
!=
$user
->
authinstance
||
(
isset
(
$values
[
'remoteusername'
])
&&
$values
[
'remoteusername'
]
!=
$remotename
)))
{
$authinst
=
get_records_select_assoc
(
'auth_instance'
,
'id = ? OR id = ?'
,
array
(
$values
[
'authinstance'
],
$user
->
authinstance
));
if
(
$USER
->
get
(
'admin'
)
||
...
...
Write
Preview
Supports
Markdown
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