Skip to:
Content
Pages
Categories
Search
Top
Bottom

Delete others activity


  • parswp
    Participant

    @parswp

    I’m trying to gain delete others activity capability to some users on a custom role created by Members plugin. But I don’t find related capability, I wonder why there isn’t a list of all buddypress capabilities in documents.

Viewing 4 replies - 1 through 4 (of 4 total)

  • parswp
    Participant

    @parswp

    I also added bp_moderate capability to the custom role but without success!


    parswp
    Participant

    @parswp

    Any suggestion around this issue?

    BP as such doesn’t have real role/caps abilities, bp_current_user_can() is a sort of faux work around so trying to add bp_moderate as a cap won’t work because BP doesn’t set true caps; ‘bp_mederate’ is just a check on something like the WP cap ‘manage_options’.

    Recently I needed to add a custom user role for group creation so we could disable group creation for all but admins and a specific role I did that by filtering into bp_user_can_create_groups, running a function that got the current user role and returned ‘true’ on $can_create for that user role so you could do something similar for activity delete filtering into ‘bp_activity_user_can_delete’ returning ‘true’ on $can_delete.


    parswp
    Participant

    @parswp

    I added a if condition that if the current user id is XXX then return true! It’s weird that, It doesn’t work either!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Delete others activity’ is closed to new replies.
Skip to toolbar