Index: modules/discourse/manifests/admin.pp |
=================================================================== |
--- a/modules/discourse/manifests/admin.pp |
+++ b/modules/discourse/manifests/admin.pp |
@@ -13,15 +13,13 @@ |
# Only confirmed accounts should be made admins |
postgresql_psql {"UPDATE users SET admin = true WHERE email = '$escaped_email' AND EXISTS (SELECT * FROM email_tokens WHERE email_tokens.user_id = users.id AND email_tokens.email = users.email AND email_tokens.confirmed)": |
db => 'discourse', |
- psql_user => 'discourse', |
- unless => 'SELECT false' |
+ psql_user => 'discourse' |
} |
} |
absent: { |
postgresql_psql {"UPDATE users SET admin = false WHERE email = '$escaped_email'": |
db => 'discourse', |
- psql_user => 'discourse', |
- unless => 'SELECT false' |
+ psql_user => 'discourse' |
} |
} |
} |