mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-07 22:35:36 +00:00
Fix various permissions frontend
This commit is contained in:
parent
5200b1d4b8
commit
b3101b094c
3 changed files with 16 additions and 3 deletions
web-frontend/modules
core/components/settings/members
database/components
|
@ -8,7 +8,12 @@
|
|||
{{ $t('membersSettings.membersTable.actions.copyEmail') }}
|
||||
</a>
|
||||
</li>
|
||||
<li v-if="member.user_id !== userId">
|
||||
<li
|
||||
v-if="
|
||||
member.user_id !== userId &&
|
||||
$hasPermission('group_user.delete', member)
|
||||
"
|
||||
>
|
||||
<a
|
||||
:class="{
|
||||
'context__menu-item--loading': removeLoading,
|
||||
|
|
|
@ -122,7 +122,11 @@
|
|||
<ShareViewLink :view="view" :read-only="readOnly"></ShareViewLink>
|
||||
</li>
|
||||
<li
|
||||
v-if="hasCompatibleDecorator && !readOnly"
|
||||
v-if="
|
||||
hasCompatibleDecorator &&
|
||||
!readOnly &&
|
||||
$hasPermission('database.table.view.decoration.update', view)
|
||||
"
|
||||
class="header__filter-item"
|
||||
>
|
||||
<ViewDecoratorMenu
|
||||
|
|
|
@ -27,7 +27,11 @@
|
|||
@move-field="moveField"
|
||||
></GridViewFieldType>
|
||||
<div
|
||||
v-if="includeAddField && !readOnly"
|
||||
v-if="
|
||||
includeAddField &&
|
||||
!readOnly &&
|
||||
$hasPermission('database.table.create_field', table)
|
||||
"
|
||||
class="grid-view__column"
|
||||
:style="{ width: 100 + 'px' }"
|
||||
>
|
||||
|
|
Loading…
Add table
Reference in a new issue