backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Sat, 11 Jun 2005 22:02:44 +0000 (22:02 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:29:15 +0000 (23:29 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.6--patch-40
   fix some stupid checks

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-705

htdocs/listes/admin.php
htdocs/listes/delete.php
htdocs/listes/options.php

index 8f4cfe2..c792808 100644 (file)
@@ -76,9 +76,6 @@ if (Env::has('del_owner')) {
 }
 
 if(list($det,$mem,$own) = $client->get_members($liste)) {
-    if (!$det['own'] && !has_perms()) {
-        $page->kill("La liste n'existe pas ou tu n'as pas le droit de l'administrer");
-    }
     
     $membres = list_sort_members($mem, $tri_promo);
     $moderos = list_sort_owners($own, $tri_promo);
index bc0d04d..1b280ed 100644 (file)
@@ -33,9 +33,6 @@ if (!$page) {
 if ( Post::get('valid') == 'OUI' && $client->delete_list($liste, Post::getBool('del_archive')) ) {
     $page->assign('deleted', true);
 } elseif (list($details,$options) = $client->get_owner_options($liste)) {
-    if (!$details['own'] && !has_perms()) {
-        $page->kill("La liste n'existe pas ou tu n'as pas le droit de l'administrer");
-    }
     $page->assign_by_ref('details', $details);
     $page->assign_by_ref('options', $options);
     $page->assign('bogo_level', $client->get_bogo_level($liste));
index b58e4b4..efdd7e9 100644 (file)
@@ -63,9 +63,6 @@ if (Post::has('submit')) {
 }
 
 if(list($details,$options) = $client->get_owner_options($liste)) {
-    if (!$details['own'] && !has_perms()) {
-        $page->kill("La liste n'existe pas ou tu n'as pas le droit de l'administrer");
-    }
     $page->assign_by_ref('details', $details);
     $page->assign_by_ref('options', $options);
     $page->assign('bogo_level', $client->get_bogo_level($liste));