Changeset 7658 in spip-zone


Ignore:
Timestamp:
Nov 29, 2006, 3:12:57 PM (12 years ago)
Author:
bertrand@…
Message:

Transmettre droits universels en tableau comme les autres.

Location:
_plugins_/_stable_/widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/widgets/tetewidgets.php

    r7642 r7658  
    4444    // et les signaler dans la page
    4545    if ($droits_accordes == count($regs))
    46         $page = Widgets_preparer_page($page, '*', $wdgcfg);
     46        $page = Widgets_preparer_page($page, array('*'), $wdgcfg);
    4747    else if ($droits)
    4848        $page = Widgets_preparer_page($page, array_keys($droits), $wdgcfg);
  • _plugins_/_stable_/widgets/widgets.js

    r7655 r7658  
    298298    $(".widget"),
    299299    function(e) {
    300       if (configWidgets.droits == '*') {
    301         return true;
    302       }
    303300      for (var i=0; i<configWidgets.droits.length; i++) {
    304301        if ($(e).is(configWidgets.droits[i])) return true;
Note: See TracChangeset for help on using the changeset viewer.