mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-28 03:04:15 +00:00
Default type to 'resource' for privileges display.
This commit is contained in:
parent
22755fc766
commit
4065f26da2
@ -464,7 +464,7 @@ function privilege_to_bits( $raw_privs ) {
|
||||
* @param integer $raw_bits A bit mask of the privileges.
|
||||
* @return mixed The string (or array of strings) of privilege names
|
||||
*/
|
||||
function bits_to_privilege( $raw_bits, $resourcetype = 'calendar' ) {
|
||||
function bits_to_privilege( $raw_bits, $resourcetype = 'resource' ) {
|
||||
$out_priv = array();
|
||||
|
||||
if ( is_string($raw_bits) ) {
|
||||
|
||||
@ -464,7 +464,7 @@ function privilege_to_bits( $raw_privs ) {
|
||||
* @param integer $raw_bits A bit mask of the privileges.
|
||||
* @return mixed The string (or array of strings) of privilege names
|
||||
*/
|
||||
function bits_to_privilege( $raw_bits, $resourcetype = 'calendar' ) {
|
||||
function bits_to_privilege( $raw_bits, $resourcetype = 'resource' ) {
|
||||
$out_priv = array();
|
||||
|
||||
if ( is_string($raw_bits) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user