mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-22 06:41:46 +00:00
Merge b9b127b14c into 126f2df21b
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { db, canAccessTrip } from '../db/database';
|
import { db, canAccessTrip } from '../db/database';
|
||||||
import { avatarUrl } from './authService';
|
import { avatarUrl } from './authService';
|
||||||
|
|
||||||
const BAG_COLORS = ['#6366f1', '#ec4899', '#f97316', '#10b981', '#06b6d4', '#8b5cf6', '#ef4444', '#f59e0b'];
|
const BAG_COLORS = ['#6366f1', '#ec4899', '#f97316', '#10b981', '#06b6d4', '#32049e', '#ef4444', '#f59e0b', '#1106aa', '#99f70e', '#04463e', '#7f0e91', '#64748b' ];
|
||||||
|
|
||||||
export function verifyTripAccess(tripId: string | number, userId: number) {
|
export function verifyTripAccess(tripId: string | number, userId: number) {
|
||||||
return canAccessTrip(tripId, userId);
|
return canAccessTrip(tripId, userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user