Enhanced permissions.cgi to use a single form for both granting and revoking permissions.cgi