diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-21 00:26:44 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-21 00:26:44 +0000 |
commit | b0bcf8aab2da6710ff8842b86fed93571e143cc8 (patch) | |
tree | 922f5b76b34a555d1a30003f216dd5df1aa3663c /src/backend/commands/functioncmds.c | |
parent | ad201b8d18b19d8c7a4a458e078bb555fcc2de74 (diff) | |
download | postgresql-b0bcf8aab2da6710ff8842b86fed93571e143cc8.tar.gz postgresql-b0bcf8aab2da6710ff8842b86fed93571e143cc8.zip |
Restructure AclItem representation so that we can have more than eight
different privilege bits (might as well make use of the space we were
wasting on padding). EXECUTE and USAGE bits for procedures, languages
now are separate privileges instead of being overlaid on SELECT. Add
privileges for namespaces and databases. The GRANT and REVOKE commands
work for these object types, but we don't actually enforce the privileges
yet...
Diffstat (limited to 'src/backend/commands/functioncmds.c')
-rw-r--r-- | src/backend/commands/functioncmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c index 0bee7cdced1..86b7cd50ec7 100644 --- a/src/backend/commands/functioncmds.c +++ b/src/backend/commands/functioncmds.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.1 2002/04/15 05:22:03 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/functioncmds.c,v 1.2 2002/04/21 00:26:42 tgl Exp $ * * DESCRIPTION * These routines take the parse tree and pick out the @@ -325,7 +325,7 @@ CreateFunction(ProcedureStmt *stmt) languageStruct = (Form_pg_language) GETSTRUCT(languageTuple); if (!((languageStruct->lanpltrusted - && pg_language_aclcheck(languageOid, GetUserId()) == ACLCHECK_OK) + && pg_language_aclcheck(languageOid, GetUserId(), ACL_USAGE) == ACLCHECK_OK) || superuser())) elog(ERROR, "permission denied"); |