Skip to content

Bug: 权限控制错误 #142

@zoulejiu

Description

@zoulejiu

Version

Vben Admin V5

Describe the bug?

<div class="flex items-center space-x-0"> <Button type="link" size="small" class="px-1" @click="modelOperation('update', row.id)" :disabled="!isManagerUser(row) || !hasPermiUpdate" > 修改 </Button> <Button type="link" size="small" class="px-1" @click="handleDeploy(row)" :disabled="!isManagerUser(row) || !hasPermiDeploy" >

!isManagerUser(row) || !hasPermiDeploy 这里有问题吧,如果不是管理员,但是是有发布的权限,按钮现在也是灰色的,不是应该!isManagerUser(row) && !hasPermiDeploy 吗

Reproduction

master 分支也是一样的问题

System Info

chrome 浏览器

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions