chk_superuser 105 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 BEGIN IF current_user = 'guest' THEN NEW.usesuper := 'f'; NEW.usecatupd := 'f'; END IF; RETURN NEW; END;