Function: wildcardImplies()
ts
function wildcardImplies(granted, required): boolean;Defined in: packages/core/src/wildcard.ts:33
Returns true when the granted permission covers the required one.
*covers everything.articles.*coversarticles.edit,articles.edit.own, ...articlescoversarticles.edit(a shorter permission implies everything below it).articles.edit,deletecoversarticles.editandarticles.delete, notarticles.create.articles.editdoes NOT coverarticles.*orarticles.
Parameters
| Parameter | Type |
|---|---|
granted | string |
required | string |
Returns
boolean
