# -*- encoding: utf-8 -*-

from rest_framework.permissions import BasePermission


class UserHasDiscordPermissions(BasePermission):
    """
    Permission to ensure that the user is permitted to make
    changes on behalf of the server they are representing.
    """




# class SubscriptionServerMember(BasePermission):
#     """
#     Permission for each subscription that omits the sub if
#     the request user isn't a member of it's server.
#     """

#     def has_object_permission(self, request, view, obj):

#         return obj.server in request.user.servers