summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/categorize.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/posts/categorize.ts')
-rw-r--r--src/api/endpoints/posts/categorize.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/categorize.ts b/src/api/endpoints/posts/categorize.ts
index 3530ba6bc4..0c85c2b4e0 100644
--- a/src/api/endpoints/posts/categorize.ts
+++ b/src/api/endpoints/posts/categorize.ts
@@ -12,7 +12,7 @@ import Post from '../../models/post';
* @return {Promise<any>}
*/
module.exports = (params, user) => new Promise(async (res, rej) => {
- if (!user.is_pro) {
+ if (!user.account.is_pro) {
return rej('This endpoint is available only from a Pro account');
}