fix: check ptype for permission if not admin

This commit is contained in:
Jannat Patel
2026-02-23 11:06:34 +05:30
parent 58826fe30f
commit 14937fd4fc
8 changed files with 23 additions and 10 deletions

View File

@@ -189,6 +189,7 @@ const jobDetails = createDocumentResource({
watch(
() => jobDetails?.doc,
() => {
if (!jobDetails.doc) return
if (jobDetails.doc.owner != user.data?.name && !user.data?.is_moderator) {
router.push({
name: 'Jobs',

View File

@@ -658,7 +658,7 @@ const getVideoDetails = () => {
const getPlyrSourceDetails = () => {
let details = []
plyrSources.value.forEach(async (source) => {
plyrSources.value.forEach((source) => {
if (source.currentTime == source.duration) markProgress()
let src = cleanYouTubeUrl(source.source)
details.push({