bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Problem with user capabilities and AJAX

(5 posts)
  • Started 8 months ago by sgatz
  • Latest reply from sgatz
  • This topic is resolved
  1. I've written my own custom plugin to have bbPress use my site's authentication system (it's not wordpress). It's working beautifully (for the most part). I replace bb_is_user_logged_in and bb_current_user (and the latter sets bb_set_current_user).

    The problem is this: AJAX calls to add a new tag, to remove an existing tag (your own or as admin), or to delete a post all fail with a "you don't have permission to do that". I see that other plugins have had that problem too. However, if I submit the request using the old school (non-AJAX) url, it works just fine.

    So I'm guessing there's something unique in the AJAX calls and that code seems dense to me. Can anyone suggest some places to check first?

    Posted 8 months ago #
  2. There is a change to the way AJAX calls are checked for permission in the next release (0.9, coming any day now I swear).

    So this may just fix itself when you move to bbPress 0.9 - in any case, I wouldn't try to fix it right now as the changes in 0.9 will probably break your fix anyway.

    Posted 8 months ago #
  3. thanks, sam,

    I neglected to mention that I was working on an build of 0.9 from a few days ago. Is this a change that you checked in recently? either way, I guess I can wait for the final release to re-check it. but let me know.

    Posted 8 months ago #
  4. Change went in yesterday, try an svn update.

    Posted 8 months ago #
  5. Sam, the offical 0.9.01 release fixed the problem. nicely done!

    Posted 8 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.