fix: check ptype for permission if not admin
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user