2016-09-18 22:14:24 +02:00
|
|
|
from ..utils.access_permissions import BaseAccessPermissions
|
|
|
|
|
|
|
|
|
|
|
|
class TopicAccessPermissions(BaseAccessPermissions):
|
|
|
|
"""
|
|
|
|
Access permissions container for Topic and TopicViewSet.
|
|
|
|
"""
|
2018-11-01 17:30:18 +01:00
|
|
|
base_permission = 'agenda.can_see'
|
2016-09-18 22:14:24 +02:00
|
|
|
|
|
|
|
def get_serializer_class(self, user=None):
|
|
|
|
"""
|
|
|
|
Returns serializer class.
|
|
|
|
"""
|
|
|
|
from .serializers import TopicSerializer
|
|
|
|
|
|
|
|
return TopicSerializer
|