Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,39 @@ onMounted(async () => {
</div>
</div>
</div>
<template #actions>
<button
class="fa-circle-info fa-solid fa-xl btn btn-ghost btn-circle"
onclick="permissions_info.showModal()"
></button>
</template>
<dialog id="permissions_info" class="modal modal-sm">
<div class="modal-box max-w-sm">
<h2 class="card-title mb-2">Scripts permissions info</h2>
<p>
In this page, you can modify the editlist (task/automation), whitelist and blacklist (only for tasks).
</p>
<p>
You are not showed in these lists since you already have every permission to modify and execute every task and automation.
</p>
<ul class="list-disc list-inside">
<li>
<span class="font-bold">Editlist</span>: every user inside it can edit the task/automation.
</li>
<li>
<span class="font-bold">Whitelist</span>: a whitelisted user can execute the task
even if he doesn't have all the necessary user-device permissions.
</li>
<li>
<span class="font-bold">Blacklist</span>: A blacklisted user can't execute the task even if he has all the necessary user-device permissions.
</li>
</ul>
<p> A blacklisted user can't be added in the whitelist and vice versa.</p>
</div>
<form method="dialog" class="modal-backdrop">
<button>Ok</button>
</form>
</dialog>
</NavbarLayout>
</template>

Expand Down
27 changes: 27 additions & 0 deletions src/views/admin/users-permissions/UsersPermissionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,33 @@
</RouterLink>
</ul>
<ListSkeleton v-else />
<template #actions>
<button
class="fa-circle-info fa-solid fa-xl btn btn-ghost btn-circle"
onclick="permissions_info.showModal()"
></button>
</template>
<dialog id="permissions_info" class="modal modal-sm">
<div class="modal-box max-w-sm">
<h2 class="card-title mb-2">Users permissions info</h2>
<p>
On this page, the list of registered users is shown.
</p>
<p>
By clicking on a user, you are shown a list of device permissions that you can add or remove for the selected user.
The device permission allows the user to execute actions of that device.
</p>
<p>
When a user has all the device permissions required by a task, he can execute that task.
</p>
<p>
You are not showed in these lists since you already have every permission to execute every device.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

</p>
</div>
<form method="dialog" class="modal-backdrop">
<button>Ok</button>
</form>
</dialog>
</NavbarLayout>
</template>

Expand Down