[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/webforms/auth
From:       Lorenzo Villani <lvillani () binaryhelix ! net>
Date:       2008-11-08 21:50:11
Message-ID: 1226181011.281148.30652.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 881735 by villani:

add some debug output

 M  +6 -1      User.cpp  


--- trunk/koffice/kexi/webforms/auth/User.cpp #881734:881735
@@ -18,6 +18,8 @@
    Boston, MA 02110-1301, USA.
 */
 
+#include <KDebug>
+
 #include "User.h"
 
 namespace KexiWebForms {
@@ -41,9 +43,12 @@
 
 bool User::can(Permission p) {
     for (int i = 0; i < m_perms.size(); ++i) {
-        if (m_perms.at(i) == p)
+        if (m_perms.at(i) == p) {
+            kDebug() << "User " << name() << " authorized";
             return true;
+        }
     }
+    kDebug() << "User " << name() << " NOT authorized";
     return false;
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic