You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
547 B
PHP
25 lines
547 B
PHP
<?php
|
|
/**
|
|
* Plugin tradsync
|
|
* Licence GPL (c) 2010 Matthieu Marcillaud
|
|
*
|
|
*/
|
|
|
|
function tradsync_autoriser(){}
|
|
|
|
// autoriser('synchronisermots')
|
|
// autoriser('synchronisermots', 'article')
|
|
// autoriser('synchronisermots', 'article', $id_article)
|
|
function autoriser_synchronisermots_dist($faire, $type='', $id=0, $qui = NULL, $opt = NULL){
|
|
if ($qui['statut'] == '0minirezo') {
|
|
return true;
|
|
}
|
|
// si type et id...
|
|
if ($type and $id) {
|
|
$type = objet_type($type);
|
|
return autoriser('modifier', $type, $id, $qui, $opt);
|
|
}
|
|
return false;
|
|
}
|
|
|