AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE);
if (! (is == null && AuthorizeManager.authorizeActionBoolean(ourContext, this, Constants.DELETE)) ) { canEdit(); }
    public Bitstream setLogo(InputStream is)        throws AuthorizeException, IOException, SQLException    {        // Check authorisation        AuthorizeManager.authorizeAction(ourContext, this, Constants.WRITE);        // First, delete any existing logo        if (logo != null)        {            log.info(LogManager.getHeader(ourContext,                "remove_logo",                "community_id=" + getID()));            communityRow.setColumnNull("logo_bitstream_id");            logo.delete();            logo = null;        }        if (is != null)        {            Bitstream newLogo = Bitstream.create(ourContext, is);            communityRow.setColumn("logo_bitstream_id", newLogo.getID());            logo = newLogo;            // now create policy for logo bitstream            // to match our READ policy            List policies = AuthorizeManager.getPoliciesActionFilter(ourContext,                                                 this, Constants.READ);            AuthorizeManager.addPolicies(ourContext, policies, newLogo );            log.info(LogManager.getHeader(ourContext,                "set_logo",                "community_id=" + getID() +                    "logo_bitstream_id=" + newLogo.getID()));        }                return logo;    }