Created
October 4, 2018 23:47
-
-
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...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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