// user. We'll handle that at the end so that we can make
// sure it's not added back later.
if (privName.startsWith("-"))
{
privName = privName.substring(1);
Privilege p = Privilege.privilegeForName(privName);
if (p == null)
{
// FIXME -- Generate an administrative alert.
// We don't know what privilege to remove, so we'll
// remove all of them.
newPrivileges.clear();
return newPrivileges;
}
else
{
removePrivileges.add(p);
}
}
else
{
Privilege p = Privilege.privilegeForName(privName);
if (p == null)
{
// FIXME -- Generate an administrative alert.
}
else