mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-20 16:56:02 +00:00
Ensure privileges is binary rather than string.
This commit is contained in:
parent
9eb76822ce
commit
f580d5ba47
@ -411,6 +411,7 @@ class CalDAVPrincipal
|
||||
* Return the privileges bits for the current session user to this resource
|
||||
*/
|
||||
function Privileges() {
|
||||
if ( is_string($this->privileges) ) $this->privileges = bindec( $this->privileges );
|
||||
return $this->privileges;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user