hooks/security.py
changeset 5815 282194aa43f3
parent 5680 3a46fd84acc4
parent 5813 0b250d72fcfa
child 5849 9db65b381028
equal deleted inserted replaced
5814:51cc4b61f9ae 5815:282194aa43f3
    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 __docformat__ = "restructuredtext en"
    22 __docformat__ = "restructuredtext en"
    22 
    23 
    23 from cubicweb import Unauthorized
    24 from cubicweb import Unauthorized
    24 from cubicweb.selectors import objectify_selector, lltrace
    25 from cubicweb.selectors import objectify_selector, lltrace
    25 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