def METHOD_NAME(self):
    self.login_as(self.admin)
    # file smart link
    para = '?repo_id=%s&path=%s&is_dir=false' % (self.repo_id, self.file_path)
    resp = self.client.get(self.url + para)
    self.assertEqual(403, resp.status_code)
    # folder smart link
    para = '?repo_id=%s&path=%s&is_dir=true' % (self.repo_id, self.folder_path)
    resp = self.client.get(self.url + para)
    self.assertEqual(403, resp.status_code)