(obj)
return obj
checks for known restrictions of the object
checks for known restrictions of the object
checks for known restrictions of the object
def check_restrictions(obj):
    """checks for known restrictions of the object"""

    restrictions = obj.restrictions.split(",")
    if "hide" in restrictions:
        raise Http404

    if "hide-author" in restrictions:
        obj.author = None

    return obj
def check_restrictions ( obj ) : restrictions = obj . restrictions . split ( "," ) if "hide" in restrictions : raise Http404 if "hide-author" in restrictions : obj . author = None return obj