Last change
on this file since 52427 was
52427,
checked in by jean-marc.viglino@…, 9 years ago
|
[BUG] Chargement des autorisations
|
File size:
790 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * Plugin SPIP Geoportail |
---|
4 | * |
---|
5 | * @author: |
---|
6 | * Jean-Marc Viglino (ign.fr) |
---|
7 | * |
---|
8 | * Copyright (c) 2010 |
---|
9 | * Logiciel distribue sous licence GNU/GPL. |
---|
10 | * |
---|
11 | * Autorisation pour le positionnement des auteurs |
---|
12 | * |
---|
13 | **/ |
---|
14 | |
---|
15 | /** Affichage du logo des geoservice |
---|
16 | */ |
---|
17 | $GLOBALS['logo_libelles']['id_geoservice'] = _T('geoportail:logo_service'); |
---|
18 | |
---|
19 | /** Autorisation de modifier le logo d'un geoservice. |
---|
20 | */ |
---|
21 | function autoriser_geoservice_iconifier ($faire, $type, $id, $qui, $opt) |
---|
22 | { return ($qui['statut'] == '0minirezo'); |
---|
23 | } |
---|
24 | |
---|
25 | /** |
---|
26 | * API d'autorisation |
---|
27 | * Un auteur peut modifier son geopositionnement |
---|
28 | */ |
---|
29 | function autoriser_auteur_positionner_dist ($faire, $type, $id, $qui, $opt) |
---|
30 | { return |
---|
31 | ( (($qui['statut'] == '0minirezo') && !$qui['restreint']) |
---|
32 | || ($qui['id_auteur'] == $id) |
---|
33 | ); |
---|
34 | } |
---|
35 | |
---|
36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.