Skip to content

Commit

Permalink
xiugai
Browse files Browse the repository at this point in the history
  • Loading branch information
lihy0 committed Mar 24, 2023
1 parent 8defebc commit 5816323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified database/role_perm.xlsx
Binary file not shown.
4 changes: 3 additions & 1 deletion torcms/api/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import config
from datetime import datetime
from config import CMS_CFG
from torcms.core import tools
from torcms.core import privilege, tools
from torcms.core.base_handler import BaseHandler
from torcms.core.tool.send_email import send_mail
from torcms.core.tools import logger
Expand Down Expand Up @@ -105,6 +105,7 @@ class UserApi(BaseHandler):
def initialize(self, **kwargs):
super().initialize()
self.is_p = False
# self.kind ='u'

def get(self, *args, **kwargs):

Expand Down Expand Up @@ -158,6 +159,7 @@ def post(self, *args, **kwargs):
elif url_arr[0] == 'changerole':
self.__change_role__(url_arr[1])

# @privilege.permission(action='assign_role')
def user_edit_role(self):
'''
Modify user infomation.
Expand Down

0 comments on commit 5816323

Please sign in to comment.