Created
March 15, 2023 16:41
-
-
Save tavplubix/95571b8e9e15c233f30b6ac928fbbc19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6734c7226d4caaf34eb825c36ca64cb375284cf0 Mon Sep 17 00:00:00 2001 | |
From: Alexander Tokmakov <tavplubix@clickhouse.com> | |
Date: Wed, 15 Mar 2023 17:40:57 +0100 | |
Subject: [PATCH] fix | |
--- | |
src/Access/Common/AccessType.h | 5 +++-- | |
1 file changed, 3 insertions(+), 2 deletions(-) | |
diff --git a/src/Access/Common/AccessType.h b/src/Access/Common/AccessType.h | |
index 39f0768837a..c73c0499fbe 100644 | |
--- a/src/Access/Common/AccessType.h | |
+++ b/src/Access/Common/AccessType.h | |
@@ -15,6 +15,7 @@ enum class AccessType | |
/// node_type either specifies access type's level (GLOBAL/DATABASE/TABLE/DICTIONARY/VIEW/COLUMNS), | |
/// or specifies that the access type is a GROUP of other access types; | |
/// parent_group_name is the name of the group containing this access type (or NONE if there is no such group). | |
+/// NOTE A parent group must be declared AFTER all its children. | |
#define APPLY_FOR_ACCESS_TYPES(M) \ | |
M(SHOW_DATABASES, "", DATABASE, SHOW) /* allows to execute SHOW DATABASES, SHOW CREATE DATABASE, USE <database>; | |
implicitly enabled by any grant on the database */\ | |
@@ -86,10 +87,10 @@ enum class AccessType | |
M(CREATE_VIEW, "", VIEW, CREATE) /* allows to execute {CREATE|ATTACH} VIEW; | |
implicitly enabled by the grant CREATE_TABLE */\ | |
M(CREATE_DICTIONARY, "", DICTIONARY, CREATE) /* allows to execute {CREATE|ATTACH} DICTIONARY */\ | |
- M(CREATE_ARBITRARY_TEMPORARY_TABLE, "", GLOBAL, CREATE) /* allows to create and manipulate temporary tables | |
- with arbitrary table engine */\ | |
M(CREATE_TEMPORARY_TABLE, "", GLOBAL, CREATE_ARBITRARY_TEMPORARY_TABLE) /* allows to create and manipulate temporary tables; | |
implicitly enabled by the grant CREATE_TABLE on any table */ \ | |
+ M(CREATE_ARBITRARY_TEMPORARY_TABLE, "", GLOBAL, CREATE) /* allows to create and manipulate temporary tables | |
+ with arbitrary table engine */\ | |
M(CREATE_FUNCTION, "", GLOBAL, CREATE) /* allows to execute CREATE FUNCTION */ \ | |
M(CREATE_NAMED_COLLECTION, "", GLOBAL, CREATE) /* allows to execute CREATE NAMED COLLECTION */ \ | |
M(CREATE, "", GROUP, ALL) /* allows to execute {CREATE|ATTACH} */ \ | |
-- | |
2.39.2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment