Title: current_user_can broken using multisite
Last modified: August 19, 2016

---

# current_user_can broken using multisite

 *  Resolved [af.](https://wordpress.org/support/users/af-1/)
 * (@af-1)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/current_user_can-broken-using-multisite/)
 * I’ve been using this code:
    `if (is_user_logged_in() && !current_user_can('subscriber')){[...]}`…
   fine for a while now to show something only to users logged in above the level
   of subscribers (authors, admins, etc).
 * Recently I upgraded my install of WordPress to use the Multisite feature and 
   ever since this bit of code has not worked.
 * Has anyone else had problems with current_user_can and Multisite?

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

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/current_user_can-broken-using-multisite/#post-1797783)
 * > current_user_can(‘subscriber’)
 * Becasue on subsites, if they are not expressly listed as a user on that site,
   then this would return false.
 *  Thread Starter [af.](https://wordpress.org/support/users/af-1/)
 * (@af-1)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/current_user_can-broken-using-multisite/#post-1797791)
 * I haven’t started using any other subsites yet though so surely all the users
   from before the switch should be listed as users of the (main) site that this
   code is on?
 * Also, I am negating the current_user_can(‘subscriber’) so even if it was returning
   false then that shouldn’t matter…
 *  [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/current_user_can-broken-using-multisite/#post-1797798)
 * `current_user_can('read')` is the equivalent of a subscriber. See [http://codex.wordpress.org/Roles_and_Capabilities#Administrator](http://codex.wordpress.org/Roles_and_Capabilities#Administrator)
   for a complete list.
 *  Thread Starter [af.](https://wordpress.org/support/users/af-1/)
 * (@af-1)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/current_user_can-broken-using-multisite/#post-1797808)
 * Thanks, changing the argument from the subscriber role to a different capability
   seems to have worked 🙂
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/current_user_can-broken-using-multisite/#post-1797953)
 * Doh, yeah that was a bad argument to begin with. 🙂
 *  [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/current_user_can-broken-using-multisite/#post-1798327)
 * Actually current_user_can says it will work on role check too
 * See
    [http://codex.wordpress.org/Function_Reference/current_user_can](http://codex.wordpress.org/Function_Reference/current_user_can)

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

The topic ‘current_user_can broken using multisite’ is closed to new replies.

## Tags

 * [current_user_can](https://wordpress.org/support/topic-tag/current_user_can/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 6 replies
 * 4 participants
 * Last reply from: [anmari](https://wordpress.org/support/users/anmari/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/current_user_can-broken-using-multisite/#post-1798327)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
