vsc远程文件权限修改

This commit is contained in:
caoqianming 2022-05-04 10:04:20 +08:00
parent 0f411279de
commit d1c79e516a
130 changed files with 26 additions and 26 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
apps/auth1/__init__.py Normal file → Executable file
View File

0
apps/auth1/admin.py Normal file → Executable file
View File

0
apps/auth1/apps.py Normal file → Executable file
View File

0
apps/auth1/authentication.py Normal file → Executable file
View File

0
apps/auth1/errors.py Normal file → Executable file
View File

0
apps/auth1/migrations/__init__.py Normal file → Executable file
View File

0
apps/auth1/models.py Normal file → Executable file
View File

0
apps/auth1/serializers.py Normal file → Executable file
View File

0
apps/auth1/tests.py Normal file → Executable file
View File

0
apps/auth1/urls.py Normal file → Executable file
View File

0
apps/auth1/views.py Normal file → Executable file
View File

0
apps/develop/__init__.py Normal file → Executable file
View File

0
apps/develop/admin.py Normal file → Executable file
View File

0
apps/develop/apps.py Normal file → Executable file
View File

0
apps/develop/migrations/__init__.py Normal file → Executable file
View File

0
apps/develop/models.py Normal file → Executable file
View File

0
apps/develop/serializers.py Normal file → Executable file
View File

0
apps/develop/tasks.py Normal file → Executable file
View File

0
apps/develop/tests.py Normal file → Executable file
View File

0
apps/develop/urls.py Normal file → Executable file
View File

0
apps/develop/views.py Normal file → Executable file
View File

0
apps/hrm/__init__.py Normal file → Executable file
View File

0
apps/hrm/admin.py Normal file → Executable file
View File

0
apps/hrm/apps.py Normal file → Executable file
View File

0
apps/hrm/errors.py Normal file → Executable file
View File

0
apps/hrm/filters.py Normal file → Executable file
View File

0
apps/hrm/migrations/0001_initial.py Normal file → Executable file
View File

0
apps/hrm/migrations/0002_alter_employee_third_info.py Normal file → Executable file
View File

0
apps/hrm/migrations/__init__.py Normal file → Executable file
View File

0
apps/hrm/models.py Normal file → Executable file
View File

0
apps/hrm/serializers.py Normal file → Executable file
View File

0
apps/hrm/services.py Normal file → Executable file
View File

0
apps/hrm/signals.py Normal file → Executable file
View File

0
apps/hrm/tasks.py Normal file → Executable file
View File

0
apps/hrm/tests.py Normal file → Executable file
View File

0
apps/hrm/urls.py Normal file → Executable file
View File

8
apps/hrm/views.py Normal file → Executable file
View File

@ -47,7 +47,7 @@ class EmployeeViewSet(CustomModelViewSet):
search_fields = ['name', 'number', 'user__username']
ordering = ['-pk']
@action(methods=['post'], detail=True, perms_map={'post': 'employee.notworkremark'}
@action(methods=['post'], detail=True, perms_map={'post': 'employee:notworkremark'}
, serializer_class=EmployeeNotWorkRemarkSerializer)
def not_work_remark(self, request, pk=None):
"""
@ -79,7 +79,7 @@ class EmployeeViewSet(CustomModelViewSet):
raise ParseError(**NO_NEED_LEVEL_REMARK)
@transaction.atomic
@action(methods=['post'], detail=False, perms_map={'post': 'employee.channel_authority'}
@action(methods=['post'], detail=False, perms_map={'post': 'employee:channel_authority'}
, serializer_class=ChannelAuthoritySerializer)
def channel_authority(self, request, pk=None):
"""门通道授权
@ -114,7 +114,7 @@ class EmployeeViewSet(CustomModelViewSet):
return Response()
@transaction.atomic
@action(methods=['post'], detail=False, perms_map={'post': 'employee.face_bind_1'}
@action(methods=['post'], detail=False, perms_map={'post': 'employee:face_bind_1'}
, serializer_class=serializers.Serializer)
def face_bind_1(self, request, pk=None):
"""同步人脸库1
@ -153,7 +153,7 @@ class EmployeeViewSet(CustomModelViewSet):
dhClient.request(**dhapis['face_bind'], json=json_data)
return Response()
@action(methods=['get'], detail=False, perms_map={'get': 'employee.face_bind_1'}
@action(methods=['get'], detail=False, perms_map={'get': 'employee:face_bind_1'}
, serializer_class=serializers.Serializer)
def face_status_1(self, request, pk=None):
"""人像下发状态

0
apps/monitor/__init__.py Normal file → Executable file
View File

0
apps/monitor/admin.py Normal file → Executable file
View File

0
apps/monitor/apps.py Normal file → Executable file
View File

0
apps/monitor/consumers.py Normal file → Executable file
View File

0
apps/monitor/errors.py Normal file → Executable file
View File

0
apps/monitor/migrations/0001_initial.py Normal file → Executable file
View File

0
apps/monitor/migrations/0002_alter_drfrequestlog_id.py Normal file → Executable file
View File

View File

0
apps/monitor/migrations/__init__.py Normal file → Executable file
View File

0
apps/monitor/models.py Normal file → Executable file
View File

0
apps/monitor/routing.py Normal file → Executable file
View File

0
apps/monitor/templates/monitor/index.html Normal file → Executable file
View File

0
apps/monitor/templates/monitor/room.html Normal file → Executable file
View File

0
apps/monitor/templates/monitor/video.html Normal file → Executable file
View File

0
apps/monitor/tests.py Normal file → Executable file
View File

0
apps/monitor/urls.py Normal file → Executable file
View File

0
apps/monitor/views.py Normal file → Executable file
View File

0
apps/system/__init__.py Normal file → Executable file
View File

0
apps/system/admin.py Normal file → Executable file
View File

0
apps/system/apps.py Normal file → Executable file
View File

0
apps/system/errors.py Normal file → Executable file
View File

0
apps/system/filters.py Normal file → Executable file
View File

0
apps/system/migrations/0001_initial.py Normal file → Executable file
View File

0
apps/system/migrations/0002_auto_20220411_2148.py Normal file → Executable file
View File

0
apps/system/migrations/0003_remove_user_phone.py Normal file → Executable file
View File

0
apps/system/migrations/0004_auto_20220421_1511.py Normal file → Executable file
View File

0
apps/system/migrations/__init__.py Normal file → Executable file
View File

0
apps/system/models.py Normal file → Executable file
View File

0
apps/system/serializers.py Normal file → Executable file
View File

0
apps/system/signals.py Normal file → Executable file
View File

0
apps/system/tasks.py Normal file → Executable file
View File

0
apps/system/tests.py Normal file → Executable file
View File

0
apps/system/urls.py Normal file → Executable file
View File

4
apps/system/views.py Normal file → Executable file
View File

@ -69,7 +69,7 @@ class PTaskViewSet(CustomModelViewSet):
select_related_fields = ['interval', 'crontab']
ordering = ['-create_time']
@action(methods=['put'], detail=True, perms_map={'put': 'ptask.update'})
@action(methods=['put'], detail=True, perms_map={'put': 'ptask:update'})
def toggle(self, request, pk=None):
"""修改启用禁用状态
@ -263,7 +263,7 @@ class UserPostViewSet(CreateModelMixin, DestroyModelMixin, ListModelMixin, Custo
用户/岗位关系
"""
perms_map = {'get': '*', 'post': 'user.update', 'delete': 'user.update'}
perms_map = {'get': '*', 'post': 'user:update', 'delete': 'user:update'}
queryset = UserPost.objects.select_related('user', 'post', 'dept').all()
serializer_class = UserPostSerializer
create_serializer_class = UserPostCreateSerializer

0
apps/third/__init__.py Normal file → Executable file
View File

0
apps/third/admin.py Normal file → Executable file
View File

0
apps/third/apps.py Normal file → Executable file
View File

0
apps/third/clients.py Normal file → Executable file
View File

0
apps/third/erros.py Normal file → Executable file
View File

0
apps/third/migrations/__init__.py Normal file → Executable file
View File

0
apps/third/models.py Normal file → Executable file
View File

0
apps/third/serializers.py Normal file → Executable file
View File

0
apps/third/tapis.py Normal file → Executable file
View File

0
apps/third/tests.py Normal file → Executable file
View File

0
apps/third/urls.py Normal file → Executable file
View File

0
apps/third/views.py Normal file → Executable file
View File

0
apps/utils/__init__.py Normal file → Executable file
View File

0
apps/utils/admin.py Normal file → Executable file
View File

0
apps/utils/apps.py Normal file → Executable file
View File

0
apps/utils/constants.py Normal file → Executable file
View File

0
apps/utils/dahua.py Normal file → Executable file
View File

0
apps/utils/errors.py Normal file → Executable file
View File

0
apps/utils/exceptions.py Normal file → Executable file
View File

0
apps/utils/filters.py Normal file → Executable file
View File

0
apps/utils/mixins.py Normal file → Executable file
View File

0
apps/utils/models.py Normal file → Executable file
View File

0
apps/utils/pagination.py Normal file → Executable file
View File

0
apps/utils/permission.py Normal file → Executable file
View File

0
apps/utils/queryset.py Normal file → Executable file
View File

0
apps/utils/request.py Normal file → Executable file
View File

0
apps/utils/serializers.py Normal file → Executable file
View File

0
apps/utils/snowflake.py Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More