Skip to:
Content
Pages
Categories
Search
Top
Bottom

Dummy user role – if ( current_user_can( ’dummy_role’ )

  • @nit3watch

    Participant

    I need a dummy role where by I could set only admins and ‘dummy’ to be able to create groups like:

    http://pastebin.com/B3sVPrzG

    So if we gave admins the additional dummy-ability and the ‘dummy’ ( ‘dummy user role’ should have same abilities as a member ) the same we would be able to restrict creation of certain aspects of the site.

    I think it would open up a lot of doors for people trying to restrict creation of things and so on.

    Let me give you an example:

    You want ppl to pay to have a group ( but you dont want them to be able to edit post and so on, moderator[ the only available option I can see beside editing/deleting posts.. ] being the next level above member ), so you let them register and once payment is received you promote them to ‘dummy’, normal ‘members’ ( maybe potential ppl that want a group ) will be redirected to a page advising them on the steps to take or the link could be hidden from ‘members’ with the creation restriction still applied. If we just hid the link and somehow ( highly possible as wp url’s are common ) they found the create link, then they would be bypassing the required steps..

Viewing 3 replies - 1 through 3 (of 3 total)
  • @djpaul

    Keymaster

    I plan to patch 1.3 (once the current development trunk has been updated to match the current stable 1.2 release) to add user role checks.

    @nit3watch

    Participant

    K so that’s in the pipe line at least. Cool beans, @DJPaul is there anywhere I can follow the progress so I can get a heads-up of new implementations besides the release of 1.3?

    @djpaul

    Keymaster

    For any future additions to core, I think we’ll make an effort to update on http://bpdevel.wordpress.com/.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dummy user role – if ( current_user_can( ’dummy_role’ )’ is closed to new replies.
Skip to toolbar