[FIX] BASE : Fixed the issue while settings the permission to user and the user not able to see the related data
This commit is contained in:
@@ -120,13 +120,13 @@ def abs_value(value):
|
||||
def config_perms(user):
|
||||
app_permissions = {
|
||||
"leave": [
|
||||
"leave.add_holiday",
|
||||
"leave.change_holiday",
|
||||
"leave.add_companyleaves",
|
||||
"leave.change_companyleaves",
|
||||
"leave.view_restrictleave",
|
||||
],
|
||||
"base": [
|
||||
"base.add_holiday",
|
||||
"base.change_holiday",
|
||||
"base.add_companyleaves",
|
||||
"base.change_companyleaves",
|
||||
"base.add_horillamailtemplates",
|
||||
"base.view_horillamailtemplates",
|
||||
],
|
||||
|
||||
@@ -51,6 +51,7 @@ APPS = [
|
||||
"base",
|
||||
"employee",
|
||||
"horilla_documents",
|
||||
"horilla_automations",
|
||||
]
|
||||
|
||||
NO_PERMISSION_MODALS = [
|
||||
|
||||
@@ -229,7 +229,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
style="display: none"
|
||||
>
|
||||
<ul class="oh-sidebar__submenu-items">
|
||||
{% if "leave"|app_installed and perms.Leave.view_leaverequest %}
|
||||
{% if "leave"|app_installed and perms.base.view_multipleapprovalcondition %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
href="{% url 'multiple-approval-condition' %}"
|
||||
@@ -258,7 +258,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if perms.base.add_holiday %}
|
||||
{% if perms.base.add_holidays %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
href="{% url 'holiday-view' %}"
|
||||
@@ -267,7 +267,7 @@ function initializeSummernote(candId,searchWords,) {
|
||||
>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if perms.base.view_companyleave %}
|
||||
{% if perms.base.view_companyleaves %}
|
||||
<li class="oh-sidebar__submenu-item">
|
||||
<a
|
||||
href="{% url 'company-leave-view' %}"
|
||||
|
||||
Reference in New Issue
Block a user