Merge branch '3.8'

Conflicts:
	lib/classes/User/Adapter.php
	lib/conf.d/bases_structure.xml
This commit is contained in:
Romain Neutron
2013-12-20 09:53:09 +01:00
4 changed files with 2 additions and 64 deletions

View File

@@ -349,20 +349,17 @@ class ACL implements cache_cacheableInterface
$mask_and = $this->app['acl']->get($template_user)->get_mask_and($base_id);
$mask_xor = $this->app['acl']->get($template_user)->get_mask_xor($base_id);
$mask_and = ctype_digit($mask_and) ? $mask_and : '0';
$mask_xor = ctype_digit($mask_xor) ? $mask_xor : '0';
/**
* apply sb is substractive
*/
$mand = substr(
str_repeat('0', 32)
. databox_status::dec2bin($this->app, $mask_and)
. decbin($mask_and)
, -32
);
$mxor = substr(
str_repeat('0', 32)
. databox_status::dec2bin($this->app, $mask_xor)
. decbin($mask_xor)
, -32
);
$m = ['aa' => '', 'ao' => '', 'xa' => '', 'xo' => ''];

View File

@@ -786,11 +786,6 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
$stmt->execute([':usr_id' => $this->get_id()]);
$stmt->closeCursor();
$sql = 'DELETE FROM sselnew WHERE usr_id = :usr_id';
$stmt = $this->app['phraseanet.appbox']->get_connection()->prepare($sql);
$stmt->execute([':usr_id' => $this->get_id()]);
$stmt->closeCursor();
$sql = 'DELETE FROM tokens WHERE usr_id = :usr_id';
$stmt = $this->app['phraseanet.appbox']->get_connection()->prepare($sql);
$stmt->execute([':usr_id' => $this->get_id()]);