Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit a2484a82 authored by Clement Mommessin's avatar Clement Mommessin
Browse files

[code] Fix has_role function of a machine

parent 8d45fc1f
......@@ -559,7 +559,7 @@ Machine::~Machine()
bool Machine::has_role(Permissions role) const
{
return (role | this->permissions) == role;
return (role & this->permissions) == role;
}
bool Machine::has_pstate(int pstate) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment