Commit 919411ba authored by Leigh Stoller's avatar Leigh Stoller

Allow this script to be invoked by any user trying to change his

own account information. It was failing from the web UI when random
user would change their info.
parent 1728fe2b
......@@ -82,14 +82,17 @@ else {
# account.
#
# 3) Called from command line as user with group_root for project
# to create a user account.
# to create a user account.
#
# 4 Called from web UI as some random user trying to change his own
# account info or password.
#
# 4) Called from command line as root.
# 5) Called from command line as root.
#
if ($UID && !TBAdmin($UID)) {
my ($me) = getpwuid($UID) or
fatal("$UID not in passwd file");
my ($me) = getpwuid($UID) or
fatal("$UID not in passwd file");
if ($UID && !TBAdmin($UID) && ($me ne $user)) {
#
# Check if group_root for the project.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment