mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
refactor: rename "Permissions" decorator to "RequirePermission"
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
4c384cc8de
commit
6b73016583
5 changed files with 40 additions and 39 deletions
|
@ -13,5 +13,6 @@ import { Permission } from './permissions.enum';
|
|||
* @constructor
|
||||
*/
|
||||
// eslint-disable-next-line func-style,@typescript-eslint/naming-convention
|
||||
export const Permissions = (...permissions: Permission[]): CustomDecorator =>
|
||||
SetMetadata('permissions', permissions);
|
||||
export const RequirePermission = (
|
||||
...permissions: Permission[]
|
||||
): CustomDecorator => SetMetadata('permissions', permissions);
|
Loading…
Add table
Add a link
Reference in a new issue