mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 16:40:30 +00:00
Complete preliminary docs for pki subscribers
This commit is contained in:
@@ -1083,19 +1083,13 @@ export const projectServiceFactory = ({
|
||||
|
||||
for (const subscriber of subscribers) {
|
||||
try {
|
||||
// (dangtony98): Add more granular permissions
|
||||
ForbiddenError.from(permission).throwUnlessCan(
|
||||
ProjectPermissionPkiSubscriberActions.Read,
|
||||
ProjectPermissionSub.PkiSubscribers
|
||||
subject(ProjectPermissionSub.PkiSubscribers, {
|
||||
name: subscriber.name
|
||||
})
|
||||
);
|
||||
|
||||
// ForbiddenError.from(permission).throwUnlessCan(
|
||||
// ProjectPermissionSshHostActions.Read,
|
||||
// subject(ProjectPermissionSub.SshHosts, {
|
||||
// hostname: host.hostname
|
||||
// })
|
||||
// );
|
||||
|
||||
allowedSubscribers.push(subscriber);
|
||||
} catch {
|
||||
// intentionally ignore subscribers where user lacks access
|
||||
|
||||
Reference in New Issue
Block a user