Beispiel #1
0
def get_user_has_permission(request):
    discussion_id = int(request.matchdict['discussion_id'])
    permission = request.matchdict['permission']
    discussion = Discussion.get_instance(discussion_id)
    if not discussion:
        raise HTTPNotFound("Discussion %d does not exist" % (discussion_id, ))
    return a_users_with_permission(discussion_id, permission)
Beispiel #2
0
def get_user_has_permission(request):
    discussion_id = int(request.matchdict['discussion_id'])
    permission = request.matchdict['permission']
    discussion = Discussion.get_instance(discussion_id)
    if not discussion:
        raise HTTPNotFound("Discussion %d does not exist" % (discussion_id,))
    return a_users_with_permission(discussion_id, permission)
Beispiel #3
0
def get_user_has_permission(request):
    discussion = request.context
    permission = request.matchdict['permission']
    return a_users_with_permission(discussion.id, permission)