Closed MercedesAMG1 closed 9 years ago
I'll consider this in the next update.
Thanks
Hi @MercedesAMG1 , for now if you want to use roles package. You can use the meteoris role preview version. Just update to the latest meteoris version to try it. then access this following urls:
"*" means anonymous user "@" means logged in user "admin" means your administrator
btw anonymous user will be granted automatically action "index" and "view". Of course You can also change it on the mugenRoleGroups menu.
Just try it, and tell me if you have any problem.
Thanks
Ok, so the workflow should be
1) create some users 2) create some collections with relationships 3) create some RoleGroups beyond *, @ and admin - (i.e. "employee") 4) create some RoleCollections - I don't understand your point 2 which seems a bit circular ... Do you create the collections before mugenRoleCollections or after? 5) create the actions if and as needed "index" "view" "update" "insert"
Thanks Peter
point 4 means that mugen will auto insert into "mugenRoleCollections" table when You are generating code using mugen. Or you can manually insert your collection using "mugen role collection" menu.
Btw your workflow are correct.
Thanks
I got the roles aspect to work on your posts collection
added posts/index posts/update posts/insert posts/remove and posts/search
they all worked perfectly so I would assume the roles function will work just fine on other collections added
does this mean you will only use this process for roles or will you be integrating alanning:roles from meteor
I also noticed a package called ongoworks:security. Do you think that would work as well or in conjunction with meteoris or not really needed as can define roles actions one by one
Peter
On Wed, Jan 7, 2015 at 7:14 PM, Ega Wachid Radiegtya < notifications@github.com> wrote:
point 4 means that mugen will auto insert into "mugenRoleCollections" table when You are generating code using mugen. Or you can manually insert your collection using "mugen role collection" menu.
Btw your workflow are correct.
Thanks
— Reply to this email directly or view it on GitHub https://github.com/radiegtya/meteoris/issues/20#issuecomment-69126362.
_Peter Gerwing _petergerwing@gmail.com petergerwing@gmail.com 403-507-6299 _Box 4125, _Olds, Alberta, Canada T4H 1P7
of course you can add "post/whateverActions" like alanning:roles, for example: posts/upsert, posts/viewAllMyGirlFriend, posts/favourite etc. So I don't think meteoris need to be integrated with alanning:roles, because all what alanning:roles can do, meteoris did. And I'd like meteoris developer to focus on code, just relax about roles without adding single code and just using roles UI easily.
about ongoworks:security I'll try to studying it first. :)
Thanks
for the mugen relationship to work each new field can relate to a different collection and the corresponding "exact" spelling of the field name in that relational collection.
I relating one field to the users collection and mugen did not like profile.name, especially the "." but profilename didn't work either(this is on the generation of the mugen files (lib/collection/filename.js)
Another Question:
I know I could remove the @ group because it it is available for deletion How could I remove the star(*)anonymous user?
Or is there a way to say no access to index and view some other way. I am not sure if you are using allow/deny or not.
Hope these a re good questions?
Peter
On Thu, Jan 8, 2015 at 2:22 AM, Ega Wachid Radiegtya < notifications@github.com> wrote:
of course you can add "post/whateverActions" like alanning:roles, for example: posts/upsert, posts/viewAllMyGirlFriend, posts/favourite etc. So I don't think meteoris need to be integrated with alanning:roles, because all what alanning:roles can do, meteoris did. And I'd like meteoris developer to focus on code, just relax about roles without adding single code and just using roles UI easily.
about ongoworks:security I'll try to studying it first. :)
Thanks
— Reply to this email directly or view it on GitHub https://github.com/radiegtya/meteoris/issues/20#issuecomment-69154556.
_Peter Gerwing _petergerwing@gmail.com petergerwing@gmail.com 403-507-6299 _Box 4125, _Olds, Alberta, Canada T4H 1P7
if you want to relate user, actually you don't need to make the relation manually. because meteoris has been create it for You. just use createdUser.profile.name or updatedUser.profile.name in your view. But if you still wanna to manually adding relation, just do this step:
then generate it..
and it will be automatically creating helpers like this in collection
happyUser: function() { return Meteor.users.findOne(this.happyUserId); },
the basic logic is like this
@ means logged in user, so * unable to use @ actions if You don't set the actions for * manually.
example:
it means that * can access only home and about page/actions. But @ can access all home, about, insert, and update.
so basically anonymous user or * are not there in group. It's available because * means blank in form. if you want to remove * access index and view. just open the role menu. and choose * group, with desirable collection. and just remove index, and view.
Thanks
I'll close this for now. If there any bug let me know and just reopen it. Thanks
it would be nice if alanning:roles package could be integrated, then front end can be open or available to non-registered users but registered users could be given access to different collections and fields based on role