bugweb-cyradm - Bugs: bug #10815, Not updating adminuser when...

 
 

bug #10815: Not updating adminuser when changing from Domainadmin to Superuser

Submitted by:  None
Submitted on:  Thu 28 Oct 2004 02:09:03 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: normal bugs
Status: FixedPrivacy: Public
Assigned to: Luc de Louw <delouw>Originator Name: James Porche
Originator Email: -unavailable-Open/Closed: Closed
Release: 0.5.4Operating System: GNU/Linux
Reproducibility: Every TimePlanned Release: 0.5.5
Cyrus IMAP version: 2.1.xPHP version: 4.3
Database type: MySQL 4.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 07 Nov 2004 09:23:46 AM UTC, comment #1:

James' patch resolved the problem obviousely. It is now in the CVS HEAD and to be released in 0.5.5

Luc de Louw <delouw>
Project AdministratorIn charge of this item.
Thu 28 Oct 2004 02:09:03 AM UTC, original submission:

This if statement should read as follows:
------------------------------------------------------------

if ($newtype==0){

# If the new type of admin will be superuser, we also need to delete the domain
# Responsibilities, because a superuser is always responsible for all domains
$query = "DELETE FROM domainadmin WHERE adminuser='$username'";
$result = $handle1->query($query);

# And update the type of this admin
$query="UPDATE adminuser SET type='$newtype' WHERE username='$username'";
$result=$handle1->query($query);
$query="INSERT INTO domainadmin (domain_name,adminuser) VALUES ('*','$username')";
$result=$handle1->query($query);
}

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #1940:  editadminuser.php added by None (9KiB - text/plain - Updated edit adminuser.php)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 07 Nov 2004 09:23:46 AM UTCdelouwStatusNone=>Fixed
  Assigned toNone=>delouw
  Open/ClosedOpen=>Closed
  Planned Release0.5.4=>0.5.5
Thu 28 Oct 2004 02:09:03 AM UTCNoneAttached File-=>Added editadminuser.php, #1812

Back to the top


Powered by Savane 3.1-cleanup1