Log message #4179462

# At Username Text
# Mar 13th 2019, 08:13 ahmedmuaz0152 Hi there, anoyone used croogo 3.0.5 ? i am struggling with an issue while installing it..after setupDatabase it goes to internal server error
# Mar 13th 2019, 03:25 challgren @stephenzgalbraith https://github.com/CakeDC/users is also helpful it has RABC https://github.com/CakeDC/auth/blob/master/Docs/Documentation/Rbac.md
# Mar 13th 2019, 01:47 admad https://github.com/cakephp/authentication
# Mar 13th 2019, 01:46 admad @stephenzgalbraith https://github.com/cakephp/authorization
# Mar 12th 2019, 23:50 stephenzgalbraith Thank you, I'll take a look at that and see if I can use it or adapt what I have :slightly_smiling_face:
# Mar 12th 2019, 23:39 dereuromark For me roles and permissions are two different things to keep things simple. roles are the basic auth to actions (e.g. using https://github.com/dereuromark/cakephp-tinyauth ), and permissions can then be sth on top to either display certain parts on the page, or allow certain things inside those actions. That made it posssible for me to not having to use the acl beast plugin^^
# Mar 12th 2019, 23:35 slackebot for different roles and permissions such as hasAllPermissions([...]) or hasRole() that can be made available across my application beyond just controller authorization. For example, making a custom menu depending on the permissions they have. I had originally separated the logic into a Component, but now realize this can't be or shouldn't be accessed in a Cell. Any help or guidance would be appreciated.
# Mar 12th 2019, 23:35 stephenzgalbraith Hi all, fairly new to CakePHP and enjoying it so far. I am at a loss though how to go about my own way to authorize users to different controllers for the website I'm building. Basically, users can have multiple roles that each have their own permissions, and then can also have custom permissions. I know the logic to merge all the various permissions to create one set, but I am confused where I should be building the logic to check
# Mar 12th 2019, 21:36 ricksaccous nevermind
# Mar 12th 2019, 21:36 ricksaccous i figured out a workaround
# Mar 12th 2019, 21:20 ricksaccous when i'm using addNested
# Mar 12th 2019, 21:19 ricksaccous in validation
# Mar 12th 2019, 21:19 ricksaccous is it possible to grab the larger context
# Mar 12th 2019, 18:59 dereuromark Just needs to get shipped ;)
# Mar 12th 2019, 18:30 ricksaccous if you wanted the status id of the first agreement it would be $agreements[0]->status_id
# Mar 12th 2019, 18:30 ricksaccous not an entity itself
# Mar 12th 2019, 18:30 ricksaccous agreements is an array of entities
# Mar 12th 2019, 18:29 ricksaccous there are multiple agreements
# Mar 12th 2019, 18:29 ricksaccous yeah that makes sense
# Mar 12th 2019, 18:26 tjkalinowski @ricksaccous: Notice (8): Trying to get property 'status_id' of non-object [APP/Template\Agreements\week.ctp, line 17]
# Mar 12th 2019, 18:24 ricksaccous or only want the status of the first agreement
# Mar 12th 2019, 18:24 ricksaccous not sure if you want to loop again through agreements
# Mar 12th 2019, 18:24 ricksaccous @tjkalinowski it's agreements not agreement
# Mar 12th 2019, 18:08 slackebot <tjkalinowski>
# Mar 12th 2019, 17:57 dereuromark Anyone find this interesting? https://github.com/FriendsOfCake/search/pull/248
# Mar 12th 2019, 15:59 yoniabad Hello, I have a query composed of three tables joined with the function union (). I have problems with searches, will there be any way to optimize this query? Thank you.
# Mar 12th 2019, 15:32 dereuromark I think so, those are like 1-2 years old in that repo^^
# Mar 12th 2019, 15:32 jeremyharris cake only recently supported binary uuids though, yeah?
# Mar 12th 2019, 15:32 dereuromark at least when joining or paginating that killed our apps.
# Mar 12th 2019, 15:31 dereuromark some time ago I tried the binary(16) uuids as they are almost as performant as aiid ( https://github.com/dereuromark/cakephp-shim/tree/master/src/Database/Type ), char36 UUID are bad for performance
# Mar 12th 2019, 15:30 half2me just by reading CHAR(36) :)
# Mar 12th 2019, 15:30 half2me makes it more clear what you are trying to do for someone who might not know exactly what you are trying to do there
# Mar 12th 2019, 15:30 jeremyharris yeah abstract types are nice
# Mar 12th 2019, 15:30 half2me I prefer to use those types instead of just putting char(36)
# Mar 12th 2019, 15:29 half2me np, good to know there is a uuid type for migrations :slightly_smiling_face:
# Mar 12th 2019, 15:29 jeremyharris yep np, sorry about the mixup :)
# Mar 12th 2019, 15:29 jeremyharris I agree
# Mar 12th 2019, 15:29 half2me thanks for the help :slightly_smiling_face:
# Mar 12th 2019, 15:29 half2me its a simple behavior, but it would make the code cleaner
# Mar 12th 2019, 15:29 half2me yeah I think I'll do that
# Mar 12th 2019, 15:29 jeremyharris yeah you can make your own behavior rather quickly to keep it clean like that :+1: