Skip to content

Instantly share code, notes, and snippets.

@joaorobertopb
Created October 4, 2018 23:47
Show Gist options
  • Save joaorobertopb/d3b1a972addf0e7978c2fe878bdfbd2e to your computer and use it in GitHub Desktop.
Save joaorobertopb/d3b1a972addf0e7978c2fe878bdfbd2e to your computer and use it in GitHub Desktop.
Você sabe o que significa o número 10?! Então... Esse é um número "mágico" no meio do código...
<?php
private function deveExecutar()
{
$gruposAcesso = explode(',',$_SESSION['GRUPOSACESSO']);
if (in_array(10, $gruposAcesso)) {
return true;
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment