Merge branch 'create-group' into 'develop'

Create group

See merge request soapbox-pub/soapbox!2325
This commit is contained in:
Alex Gleason
2023-03-13 18:28:43 +00:00
12 changed files with 210 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ type Permission = typeof PERMISSION_CREATE_GROUPS | typeof PERMISSION_INVITE_USE
export const hasPermission = (state: RootState, permission: Permission) => {
const account = state.accounts_meta.get(state.me as string)!;
if (!account?.role) return false;
if (!account?.role) return true;
const permissions = account.getIn(['role', 'permissions']) as number;