equal
deleted
inserted
replaced
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """Security hooks: check permissions to add/delete/update entities according to |
18 """Security hooks: check permissions to add/delete/update entities according to |
19 the user connected to a session |
19 the user connected to a session |
|
20 """ |
20 |
21 |
21 """ |
|
22 __docformat__ = "restructuredtext en" |
22 __docformat__ = "restructuredtext en" |
23 |
23 |
24 from cubicweb import Unauthorized |
24 from cubicweb import Unauthorized |
25 from cubicweb.selectors import objectify_selector, lltrace |
25 from cubicweb.selectors import objectify_selector, lltrace |
26 from cubicweb.server import BEFORE_ADD_RELATIONS, ON_COMMIT_ADD_RELATIONS, hook |
26 from cubicweb.server import BEFORE_ADD_RELATIONS, ON_COMMIT_ADD_RELATIONS, hook |