UserCheck.py 375 Bytes
# coding=utf-8
#author:        4N
#createtime:    2022/1/14
#email:         nheweijun@sina.com

import configure
class UserCheck:

    @classmethod
    def verify(cls,owner,operator):
        if configure.PermissionActive:
            if configure.PermissionActive and operator != "admin" and owner !=operator:
                raise Exception("缺乏权限!")