mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
feat: add privilege give/rescind hooks (#8336)
* feat: add privilege give/rescind hooks action:privileges.categories.give/rescind action:privileges.global.give/rescind breaking change, privileges.categories.give/rescind and privileges.global.give/rescind use full privilege name for groups ie `groups:find` instead of `find` * fix: tests, privileges renamed
This commit is contained in:
committed by
GitHub
parent
a0e243eea1
commit
ec5582b53c
@@ -579,7 +579,7 @@ describe('Groups', function () {
|
||||
Groups.create({ name: groupName }, next);
|
||||
},
|
||||
function (groupData, next) {
|
||||
privileges.categories.give(['topics:create'], cid, groupName, next);
|
||||
privileges.categories.give(['groups:topics:create'], cid, groupName, next);
|
||||
},
|
||||
function (next) {
|
||||
Groups.isMember(groupName, 'cid:1:privileges:groups:topics:create', next);
|
||||
|
||||
Reference in New Issue
Block a user