Follow-up Comment #2, bug #13964 (project web-cyradm):
Hello,
I have done a quick fix to this problem. In editadminuser.php on line around
286,
----
# 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);
---
Add two lines below this fragment of code above :
---
$query="INSERT INTO domainadmin (domain_name,adminuser) VALUES('',
'$username')";
$result = $handle1->query($query);
---
It's true that admin user doesn't have to have any domain names, but the
empty entry still needs to be present in the table, or everything would
become chaotic.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=13964>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
[email protected]
http://www.web-cyradm.org/mailman/listinfo/web-cyradm