chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
// @flow
|
||||
import policy from './policy';
|
||||
import { ApiKey, User } from '../models';
|
||||
import policy from "./policy";
|
||||
import { ApiKey, User } from "../models";
|
||||
|
||||
const { allow } = policy;
|
||||
|
||||
allow(User, 'create', ApiKey);
|
||||
allow(User, "create", ApiKey);
|
||||
|
||||
allow(
|
||||
User,
|
||||
['read', 'update', 'delete'],
|
||||
["read", "update", "delete"],
|
||||
ApiKey,
|
||||
(user, apiKey) => user && user.id === apiKey.userId
|
||||
);
|
||||
|
Reference in New Issue
Block a user