permissionFor: (
scope: any,
resource: any,
) => {
id: string;
name: string;
problem: string;
sameAsAdvertised: boolean;
scope: string;
stripped: boolean;
} = ...
Type Declaration
-
- (
scope: any,
resource: any,
): {
id: string;
name: string;
problem: string;
sameAsAdvertised: boolean;
scope: string;
stripped: boolean;
}
-
Returns {
id: string;
name: string;
problem: string;
sameAsAdvertised: boolean;
scope: string;
stripped: boolean;
}
{ scope, name, stripped, id, ... }
Turns one advertised scope into a permission of the resource, taking the resource's base off where it prefixes the scope.