Yes but it show the same value that I can retrieve from the database eg gallery => 3
I think that is something about "unserialize" but don't remember it. Have used it 5 years ago. Long time to remember it.
Ah, okay...I wish I could help further but I have never "unserialized" the numeric permissions values to get a particular sub-permission.
Hopefully someone here knows, as I would also be interested in knowing how that works.