FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
drupaljs/sql/roles.sql at main · ruvnet/drupaljs · GitHub
ruvnet
/
drupaljs
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
38
Code
Issues
2
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
drupaljs
/
sql
/
roles.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (25 loc) · 1.12 KB
Breadcrumbs
drupaljs
/
sql
/
roles.sql
Copy path
File metadata and controls
30 lines (25 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--
Roles and permissions for Drupal.js
--
Create roles
CREATE ROLE drupaljs_admin;
CREATE ROLE drupaljs_editor;
CREATE ROLE drupaljs_author;
CREATE ROLE drupaljs_anonymous;
--
Grant permissions to drupaljs_admin
GRANT
ALL PRIVILEGES
ON
ALL TABLES
IN
SCHEMA public TO drupaljs_admin;
GRANT
USAGE,
SELECT
ON
ALL SEQUENCES
IN
SCHEMA public TO drupaljs_admin;
--
Grant permissions to drupaljs_editor
GRANT
SELECT
, INSERT,
UPDATE
,
DELETE
ON
content, content_types, taxonomies, terms, content_terms, comments, menus, menu_items
TO drupaljs_editor;
GRANT
SELECT
ON
users TO drupaljs_editor;
GRANT
USAGE,
SELECT
ON
ALL SEQUENCES
IN
SCHEMA public TO drupaljs_editor;
--
Grant permissions to drupaljs_author
GRANT
SELECT
, INSERT,
UPDATE
,
DELETE
ON
content, comments TO drupaljs_author;
GRANT
SELECT
ON
content_types, taxonomies, terms, content_terms, menus, menu_items
TO drupaljs_author;
GRANT
USAGE,
SELECT
ON
SEQUENCE content_id_seq, comments_id_seq TO drupaljs_author;
--
Grant permissions to drupaljs_anonymous
GRANT
SELECT
ON
content, content_types, taxonomies, terms, content_terms, menus, menu_items
TO drupaljs_anonymous;
Back
|
FazBrowse Home
|
New Git URL