mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复应用无法保存 (#856)
This commit is contained in:
parent
e2867995af
commit
26536112ce
|
|
@ -57,9 +57,9 @@ class Model(AppModelMixin):
|
|||
default=PermissionType.PRIVATE)
|
||||
|
||||
def is_permission(self, user_id):
|
||||
if self.permission_type == PermissionType.PRIVATE and str(user_id) == str(self.user_id):
|
||||
return False
|
||||
return True
|
||||
if self.permission_type == PermissionType.PUBLIC or str(user_id) == str(self.user_id):
|
||||
return True
|
||||
return False
|
||||
|
||||
class Meta:
|
||||
db_table = "model"
|
||||
|
|
|
|||
Loading…
Reference in New Issue