Code Duplication    Length = 2-2 lines in 2 locations

Sources/ScheduledTasks.php 2 locations

@@ 328-329 (lines=2) @@
325
			if (!$access && isset($perms[$profiles[$board]]['add']))
326
			{
327
				// They can access?!
328
				if (array_intersect($perms[$profiles[$board]]['add'], $member['groups']))
329
					$access = true;
330
331
				// If they have deny rights don't consider them!
332
				if (isset($perms[$profiles[$board]]['deny']))
@@ 333-334 (lines=2) @@
330
331
				// If they have deny rights don't consider them!
332
				if (isset($perms[$profiles[$board]]['deny']))
333
					if (array_intersect($perms[$profiles[$board]]['deny'], $member['groups']))
334
						$access = false;
335
			}
336
337
			// Finally, fix it for admins!