We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea8c42 commit 3d1cf99Copy full SHA for 3d1cf99
src/Darryldecode/Backend/Components/User/Models/User.php
@@ -173,6 +173,18 @@ public function inGroup($group)
173
174
return $found;
175
}
176
+ else if ( is_int($group) )
177
+ {
178
+ $this->groups->each(function($g) use ($group, &$found)
179
180
+ if( $g->id == $group )
181
182
+ $found = true;
183
+ }
184
+ });
185
+
186
+ return $found;
187
188
else if ( is_object($group) )
189
{
190
$this->groups->each(function($g) use ($group, &$found)
0 commit comments