perm bug
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 902 B |
After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 688 B |
After Width: | Height: | Size: 808 B |
|
@ -5,8 +5,8 @@
|
|||
<view class="weui-cells weui-cells_after-title">
|
||||
<view class="weui-panel__bd">
|
||||
<view class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active" bindtap="register">
|
||||
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
|
||||
<open-data type="userAvatarUrl"></open-data>
|
||||
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg" style="border-radius:6px;overflow:hidden">
|
||||
<open-data type="userAvatarUrl" ></open-data>
|
||||
</view>
|
||||
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
|
||||
<view class="weui-media-box__title" wx:if="{{userinfo && userinfo.username}}">账号: {{userinfo.username}}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
},
|
||||
"useCompilerModule": true,
|
||||
"useCompilerModule": false,
|
||||
"userConfirmedUseCompilerModuleSwitch": false
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
|
|
|
@ -42,7 +42,7 @@ class MyPermission(RbacPermission):
|
|||
# perms = get_permission_list(request.user)
|
||||
return True
|
||||
elif isinstance(request.user,Consumer):
|
||||
if cache.get(request.user.username + '__perms'):
|
||||
if cache.get('cperms_'+str(request.user.id)):
|
||||
perms = cache.get('cperms_'+str(request.user.id))
|
||||
else:
|
||||
perms = get_consumerperm_list(request.user)
|
||||
|
|