def skill_type():

    mode = session.s3.hrm.mode
    def prep(r):
        if mode is not None:
            auth.permission.fail()
        return True
    s3.prep = prep

    return s3_rest_controller("hrm", resourcename)

# -----------------------------------------------------------------------------
Test a Staff which has a Site assigned after creation
dataset/ETHPy150Open sahana/eden/controllers/vol.py/skill_type--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3db/hrm.py/LocationSettingTests._testStaffUpdateFromSite