def strStr(self, haystack, needle):
        for i in xrange(len(haystack) - len(needle) + 1):
            if haystack[i : i + len(needle)] == needle:
                return i
        return -1
Handles checking of permissions to see if the user has authorization
dataset/ETHPy150Open kamyu104/LeetCode/Python/implement-strstr.py/Solution2.strStr--crossover with--dataset/ETHPy150Open toastdriven/piecrust/piecrust/resources.py/Resource.is_authorized