Zhang Huangbin avatar Zhang Huangbin committed b523ad5

Fixed: [mysql/pgsql] List all users in Admins page.

Comments (0)

Files changed (4)

+= 0.2 =
+    * Fixed:
+        + [mysql/pgsql] List all users in Admins page.
+
 = 0.1.9 =
     * New features:
         + Mark mail user as global admin.
 __author__ = 'Zhang Huangbin'
 __author_mail__ = 'zhb@iredmail.org'
-__version_ose__ = '0.1.9'
+__version_ose__ = '0.2'
 __url_latest_ose__ = 'http://iredmail.org/version/check.py/ose.xml'
 __no__ = ''
 __id__ = ''

libs/mysql/admin.py

                 """
                 SELECT name, username, language, active, isadmin, isglobaladmin
                 FROM mailbox
+                WHERE isadmin=1
                 ORDER BY username ASC
                 %s
                 """ % (self.sql_limit)

libs/pgsql/admin.py

                 """
                 SELECT name, username, language, active, isadmin, isglobaladmin
                 FROM mailbox
+                WHERE isadmin=1
                 ORDER BY username ASC
                 %s
                 """ % (self.sql_limit)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.