From 1a54135f0dc891780bb60252213204f9b871a99c Mon Sep 17 00:00:00 2001 From: Joe Nelson Date: Fri, 27 Nov 2015 23:17:53 -0800 Subject: [PATCH] Add authenticator role to blog schema --- schema-templates/blog.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/schema-templates/blog.sql b/schema-templates/blog.sql index 0788a6280..c001786a0 100644 --- a/schema-templates/blog.sql +++ b/schema-templates/blog.sql @@ -5,8 +5,10 @@ begin; -- comment out the role creation statements if -- you want to run this script more than once -create role anon noinherit; +create role anon; create role author; +create role authenticator noinherit; +grant anon, author to authenticator; create extension if not exists pgcrypto; create extension if not exists "uuid-ossp"; @@ -350,7 +352,6 @@ grant execute on function signup(text, text) to anon; -grant author to anon; grant select, insert, update, delete on basic_auth.tokens, basic_auth.users to anon, author; grant select, insert, update, delete