Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3552351
D7033.id23615.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7033.id23615.diff
View Options
diff --git a/keyserver/src/creators/role-creator.js b/keyserver/src/creators/role-creator.js
--- a/keyserver/src/creators/role-creator.js
+++ b/keyserver/src/creators/role-creator.js
@@ -95,6 +95,7 @@
const openTopLevelDescendantJoinThread =
OPEN_TOP_LEVEL_DESCENDANT + threadPermissions.JOIN_THREAD;
const openChildJoinThread = OPEN_CHILD + threadPermissions.JOIN_THREAD;
+ const openChildAddMembers = OPEN_CHILD + threadPermissions.ADD_MEMBERS;
const genesisMemberPermissions = {
[threadPermissions.KNOW_OF]: true,
@@ -107,7 +108,9 @@
...genesisMemberPermissions,
[threadPermissions.LEAVE_THREAD]: true,
[threadPermissions.CREATE_SIDEBARS]: true,
+ [threadPermissions.ADD_MEMBERS]: true,
[openChildJoinThread]: true,
+ [openChildAddMembers]: true,
};
let memberPermissions;
diff --git a/keyserver/src/database/migration-config.js b/keyserver/src/database/migration-config.js
--- a/keyserver/src/database/migration-config.js
+++ b/keyserver/src/database/migration-config.js
@@ -203,6 +203,7 @@
);
},
],
+ [18, updateRolesAndPermissionsForAllThreads],
]);
const newDatabaseVersion: number = Math.max(...migrations.keys());
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 8:05 PM (7 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2719134
Default Alt Text
D7033.id23615.diff (1 KB)
Attached To
Mode
D7033: [keyserver] Give all members permissions to add users to a community
Attached
Detach File
Event Timeline
Log In to Comment