[wp-trac] [WordPress Trac] #25255: Extend admin-ajax to detect multiple user capability and admin-ajax.php does not return 0
WordPress Trac
noreply at wordpress.org
Mon Sep 9 13:02:07 UTC 2013
#25255: Extend admin-ajax to detect multiple user capability and admin-ajax.php
does not return 0
--------------------------------+------------------------------
Reporter: godhulii_1985 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.6
Severity: normal | Resolution:
Keywords: close dev-feedback |
--------------------------------+------------------------------
Comment (by SergeyBiryukov):
Replying to [comment:5 godhulii_1985]:
> Do not let every user to call every ajax function I've written => I am
using built-in capability check to distinguish users and it can be
standardizing just like menu/submenu page handling. Currently wordpress
distinguish logged in and logged out users, I wanted beyond that (separate
in logged in users also).
Using `current_user_can()` in your AJAX handler sounds like the correct
way to achieve that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25255#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list