Ticket #2378: capabilities.diff
| File capabilities.diff, 527 bytes (added by ringmaster, 6 years ago) |
|---|
-
capabilities.php
146 146 $this->id = $this->ID; 147 147 $this->cap_key = $table_prefix . 'capabilities'; 148 148 $this->caps = &$this->{$this->cap_key}; 149 if ( ! is_array($this->caps) ) 149 if ( ! is_array($this->caps) ) { 150 150 $this->caps = array(); 151 $this->roles = array(); 152 $this->set_role(get_settings('default_role')); 153 } 151 154 $this->get_role_caps(); 152 155 } 153 156
