mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-01-20 07:12:58 -05:00
all
This commit is contained in:
@@ -82,7 +82,7 @@ def stuff(request):
|
||||
category = Category.objects.get(lti_platform_id=platform_id, lti_context_id=context_id)
|
||||
|
||||
# Check if user has permission to upload to this category
|
||||
if request.user.has_upload_access_to_category(category):
|
||||
if request.user.has_member_access_to_category(category):
|
||||
ret['lti_category_uid'] = category.uid
|
||||
except Category.DoesNotExist:
|
||||
pass
|
||||
|
||||
@@ -283,7 +283,7 @@ class MediaList(APIView):
|
||||
category = Category.objects.get(uid=publish_to_category)
|
||||
|
||||
# Check if user has upload access to this category
|
||||
if request.user.has_upload_access_to_category(category):
|
||||
if request.user.has_member_access_to_category(category):
|
||||
media.category.add(category)
|
||||
except Category.DoesNotExist:
|
||||
# Category doesn't exist, silently ignore
|
||||
|
||||
Reference in New Issue
Block a user