更新文档
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
.. _权限验证模块:
|
||||
|
||||
:mod:`rights` -- 权限验证模块
|
||||
==================================
|
||||
|
||||
:mod:`rights` 模块源代码在文件夹 `applications/common/utils/rights.py` 下,主要用于权限验证。
|
||||
:mod:`rights` 模块源代码在文件 `applications/common/utils/rights.py` 下,主要用于权限验证。
|
||||
|
||||
.. module:: rights
|
||||
|
||||
@@ -23,6 +25,8 @@
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from applications.common.utils.rights import authorize
|
||||
|
||||
@app.route("/test")
|
||||
@authorize("system:power:remove", log=True)
|
||||
def test_index():
|
||||
|
||||
Reference in New Issue
Block a user