| @@ 139-149 (lines=11) @@ | ||
| 136 | * |
|
| 137 | * @return bool can see |
|
| 138 | */ |
|
| 139 | public function canView($user) |
|
| 140 | { |
|
| 141 | if ($user->can('setFlowContent')) { |
|
| 142 | return true; |
|
| 143 | } |
|
| 144 | if ($user->can('setOwnFlowContent') && in_array($user->identity, $this->users)) { |
|
| 145 | return true; |
|
| 146 | } |
|
| 147 | ||
| 148 | return false; |
|
| 149 | } |
|
| 150 | } |
|
| 151 | ||
| @@ 112-122 (lines=11) @@ | ||
| 109 | * |
|
| 110 | * @return bool can see |
|
| 111 | */ |
|
| 112 | public function canView($user) |
|
| 113 | { |
|
| 114 | if ($user->can('setFlowContent')) { |
|
| 115 | return true; |
|
| 116 | } |
|
| 117 | if ($user->can('setOwnFlowContent') && in_array($user->identity, $this->flow->users)) { |
|
| 118 | return true; |
|
| 119 | } |
|
| 120 | ||
| 121 | return false; |
|
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * Get raw data and transform it to content type specific needs. |
|