friendica/include/acl_selectors.php

26 lines
532 B
PHP
Raw Normal View History

2010-07-13 03:00:58 +02:00
<?php
/**
* @file include/acl_selectors.php
*/
use Friendica\App;
use Friendica\Core\Acl;
2017-12-07 15:04:24 +01:00
use Friendica\Model\Contact;
require_once "mod/proxy.php";
function get_acl_permissions($user = null) {
return Acl::getDefaultUserPermissions($user);
}
2015-06-26 15:13:52 +02:00
function populate_acl($user = null, $show_jotnets = false) {
return Acl::getFullSelectorHTML($user, $show_jotnets);
2010-08-16 14:23:26 +02:00
}
function navbar_complete(App $a) {
$search = notags(trim($_REQUEST['search']));
$mode = $_REQUEST['smode'];
return Acl::contactAutocomplete($search, $mode);
2016-04-14 17:05:19 +02:00
}