mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 13:39:04 +00:00
feat(kanban): update task status permissions, reporter defaults, and participant access (#345)
* feat(kanban): allow editors to change task status and default reporter to creator * fix(kanban): hide create task button for reviewers and eliminate duplicate error toast
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { hc } from 'hono/client'
|
||||
import type { AppType } from '@shumai/api'
|
||||
import { useAuthStore } from '@/ui/stores/auth'
|
||||
import { toast } from 'sonner'
|
||||
|
||||
const customFetch = async (input: RequestInfo | URL, init?: RequestInit) => {
|
||||
const response = await fetch(input, init)
|
||||
@@ -20,12 +19,6 @@ const customFetch = async (input: RequestInfo | URL, init?: RequestInit) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (response.status === 403) {
|
||||
toast.error('You do not have permission. Please contact the team admin.', {
|
||||
id: 'forbidden-error',
|
||||
})
|
||||
}
|
||||
|
||||
return response
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user