new permission manager

This commit is contained in:
Rushabh Mehta
2013-01-01 19:51:35 +05:30
parent 5f183982cd
commit 78a0c20305
7 changed files with 46 additions and 84 deletions

View File

@@ -2,9 +2,9 @@
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-10 10:25:20",
"creation": "2012-12-19 12:46:47",
"modified_by": "Administrator",
"modified": "2012-12-18 11:06:54"
"modified": "2013-01-01 15:13:51"
},
{
"is_submittable": 1,
@@ -28,6 +28,7 @@
"parent": "Leave Application",
"read": 1,
"doctype": "DocPerm",
"write": 1,
"parenttype": "DocType",
"parentfield": "permissions"
},
@@ -49,6 +50,7 @@
"description": "Leave can be approved by users with Role, \"Leave Approver\"",
"doctype": "DocField",
"label": "Leave Approver",
"options": "link:Profile",
"fieldname": "leave_approver",
"fieldtype": "Select",
"permlevel": 0
@@ -90,6 +92,7 @@
"permlevel": 0
},
{
"print_width": "50%",
"doctype": "DocField",
"width": "50%",
"fieldname": "column_break1",
@@ -115,29 +118,32 @@
"in_filter": 1
},
{
"read_only": 1,
"search_index": 0,
"doctype": "DocField",
"label": "Employee Name",
"fieldname": "employee_name",
"fieldtype": "Data",
"permlevel": 1,
"permlevel": 0,
"in_filter": 1
},
{
"read_only": 1,
"no_copy": 1,
"doctype": "DocField",
"label": "Leave Balance Before Application",
"fieldname": "leave_balance",
"fieldtype": "Currency",
"permlevel": 1
"permlevel": 0
},
{
"read_only": 1,
"no_copy": 1,
"doctype": "DocField",
"label": "Total Leave Days",
"fieldname": "total_leave_days",
"fieldtype": "Currency",
"permlevel": 1
"permlevel": 0
},
{
"doctype": "DocField",
@@ -157,6 +163,7 @@
"permlevel": 2
},
{
"read_only": 0,
"search_index": 0,
"doctype": "DocField",
"label": "Fiscal Year",
@@ -168,6 +175,7 @@
"in_filter": 1
},
{
"read_only": 0,
"print_hide": 1,
"doctype": "DocField",
"label": "Letter Head",
@@ -177,38 +185,27 @@
"permlevel": 2
},
{
"print_hide": 1,
"no_copy": 1,
"doctype": "DocField",
"label": "Amended From",
"options": "Sales Invoice",
"fieldname": "amended_from",
"fieldtype": "Data",
"permlevel": 2
},
{
"doctype": "DocField",
"label": "Amendment Date",
"fieldname": "amendment_date",
"fieldtype": "Date",
"permlevel": 2
"fieldtype": "Link",
"permlevel": 1
},
{
"create": 1,
"doctype": "DocPerm",
"write": 1,
"role": "Employee",
"permlevel": 0,
"match": "employee"
},
{
"doctype": "DocPerm",
"role": "All",
"permlevel": 1
},
{
"amend": 1,
"create": 1,
"doctype": "DocPerm",
"submit": 1,
"write": 1,
"role": "HR User",
"cancel": 1,
"permlevel": 0
@@ -218,7 +215,6 @@
"create": 1,
"doctype": "DocPerm",
"submit": 1,
"write": 1,
"role": "Leave Approver",
"cancel": 1,
"permlevel": 0,
@@ -226,7 +222,6 @@
},
{
"doctype": "DocPerm",
"write": 1,
"role": "HR User",
"permlevel": 2
},
@@ -235,14 +230,8 @@
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 1,
"role": "Leave Approver",
"cancel": 0,
"permlevel": 2
},
{
"doctype": "DocPerm",
"role": "All",
"permlevel": 3
}
]