Deny the listed roles from viewing the decorated class.
@CannotView('guest', 'public') class SensitiveReport extends Model { ... } Copy
@CannotView('guest', 'public') class SensitiveReport extends Model { ... }
Deny the listed roles from viewing the decorated class.