mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +00:00
Merge branch '3.8'
Conflicts: lib/classes/User/Adapter.php lib/conf.d/bases_structure.xml
This commit is contained in:
@@ -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' => ''];
|
||||
|
@@ -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()]);
|
||||
|
Reference in New Issue
Block a user