Hello, is 'roles' have no meaning in Lucee?
# lucee
r
Hello, is 'roles' have no meaning in Lucee?
<cffunction name="test" roles="admin"> <cfreturn "Passed" /> </cffunction> <cfoutput>#test()#</cfoutput>
Lucee ignores it
a
https://docs.lucee.org/reference/tags/function.html

https://i.paste.pics/2a253412ed1cf065b12c97cf4051f5ea.png▾

Well that's wrong
Title is misleading, but it's the same issue.
r
ACF checks 'roles' in standalone functions too, but Lucee ignores 'roles' attribute both in standalone functions and cfc methods.
✅ 1
not a critical thing, but inconsistent, for old code could be a problem with migration
💯 1
a
If it's impacting you, make sure LAS knows by voting for that ticket, and maybe explaining your situation.
z
any other roles usage in cfml which needs to be implemented?
a
I'm only aware of it on CFCs and methods. DO the does for like
isUserInRole
or something link through to a full description of the expected implementation?
Oh actually goes to show what I know... it's not on CFCs. Just functions.
(In my defence... I mentioned that only cos the of the thing in the Lucee docs mentioned above... I presumed at least part of it was right for some reason ;-))