From c33d575899593a46a5b9a76e4e0ef6f9d81e55dd Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 29 Jun 2005 20:34:15 +0000 Subject: More cleanup on roles patch. Allow admin option to be inherited through role memberships; make superuser/createrole distinction do something useful; fix some locking and CommandCounterIncrement issues; prevent creation of loops in the membership graph. --- src/include/utils/acl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/utils/acl.h') diff --git a/src/include/utils/acl.h b/src/include/utils/acl.h index 82e004794bc..0b560e062c1 100644 --- a/src/include/utils/acl.h +++ b/src/include/utils/acl.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/acl.h,v 1.79 2005/06/28 19:51:25 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/acl.h,v 1.80 2005/06/29 20:34:15 tgl Exp $ * * NOTES * An ACL array is simply an array of AclItems, representing the union @@ -210,6 +210,7 @@ extern AclMode aclmask(const Acl *acl, Oid roleid, Oid ownerId, AclMode mask, AclMaskHow how); extern bool is_member_of_role(Oid member, Oid role); +extern bool is_admin_of_role(Oid member, Oid role); extern void initialize_acl(void); -- cgit v1.2.3