mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
moved directory structure
This commit is contained in:
12
patches/july_2012/blog_guest_permission.py
Normal file
12
patches/july_2012/blog_guest_permission.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
def execute():
|
||||
"""allocate read write permission to guest for doctype 'Blog'"""
|
||||
import webnotes
|
||||
webnotes.conn.sql("""delete from `tabDocPerm` where parent = 'Blog'""")
|
||||
|
||||
webnotes.conn.commit()
|
||||
|
||||
import webnotes.model.sync
|
||||
webnotes.model.sync.sync('website', 'blog', 1)
|
||||
|
||||
webnotes.conn.begin()
|
||||
Reference in New Issue
Block a user