Skip to content
Snippets Groups Projects

Add actions to moderation menu

2 files
+ 73
19
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 12
0
@@ -27,3 +27,15 @@ export async function searchUsers(query, showLocalUsersOnly, token, page = 1) {
page_size: 50
}})
}
export async function addRight(nickname, right, token) {
return Promise.resolve({ data:
{ [`is_${right}`]: true }
})
}
export async function deleteRight(nickname, right, token) {
return Promise.resolve({ data:
{ [`is_${right}`]: false }
})
}
Loading