Property Permissions
Boolean - default true
import { OnlyWithPermissions, ExcludePermissions } from '@tradinos/cms-backend-authorization';
class Pokemon {
name: string;
type: string;
@OnlyWithPermissions('master')
IV: string;
@ExcludePermissions('blocked')
level: string;
}@Controller()
export class PokemonController {
@Get()
listPokemons(): Pokemon {
/** Some code here */
}
}Last updated