Browse Source

Doc permissions

master
venkataakhil 2 years ago
parent
commit
6a95a3024e
  1. 9
      smart_service/apis/master_api.py
  2. 994
      smart_service/fixtures/custom_docperm.json

9
smart_service/apis/master_api.py

@ -1,7 +1,8 @@
# Copyright (c) 2021, Hard n Soft Technologies Pvt Ltd and contributors # Copyright (c) 2021, Hard n Soft Technologies Pvt Ltd and contributors
# For license information, please see license.txt # For license information, please see license.txt
from frappe.rate_limiter import rate_limit
import frappe import frappe
from frappe.model.document import Document from frappe.model.document import Document
import json import json
@ -11,6 +12,12 @@ from smart_service.apis.app_user_login import input_validation
current_db_name = frappe.conf.get("db_name") current_db_name = frappe.conf.get("db_name")
@frappe.whitelist(allow_guest=1)
@rate_limit(limit=5, seconds=15, methods=["POST"],ip_based=True)
def masters1(args=None, LSD=None):
return 1
@frappe.whitelist() @frappe.whitelist()
def masters(args=None, LSD=None): def masters(args=None, LSD=None):
val = input_validation(args=args) val = input_validation(args=args)

994
smart_service/fixtures/custom_docperm.json

File diff suppressed because it is too large
Loading…
Cancel
Save