def can_delete_paper(paperid): ## currently anonymous cannot delete any comments userid = get_user_id() if (userid == ANONYMOUS): return False else: return is_super_admin(userid) or is_author_of_paper(userid, paperid)
def can_delete_tag(tagname): userid = get_user_id() if (userid == ANONYMOUS): return False else: return is_super_admin(userid)
def can_delete_author(fullname): userid = get_user_id() if (userid == ANONYMOUS): return False else: return is_super_admin(userid)