Skip to main content

Iter

Shared
function Lyn.Permission.Iter()Function

Description

Iterates registered permissions in sorted order.

Returns

  1. Iterator yielding the index and the permission table (name, category, default_role).

Example:

for _, perm in Lyn.Permission.Iter() do
print(perm.category, perm.name)
end