116 Posts
nycxav
10 years ago
2
Topic
Hi,

I have a form defined as a module and displayed in a content type. The purpose of the module is to create multi-categorization.
I have a separate content type where I store the article id (as related article) and the category ids. It works fine.

I display this article on the content view in order to be able to add articles. The problem is I want to allow only the author of the article to add information in that form.

How can I do that? Is there a way with Typo? Like create a php to test if the logged-in user is the author of the article?
I have tried but I have not managed to create such a typo.

Any help appreciated.

Thanks.
Xav.



Get a VIP membership
85 Posts
Jpeg
10 years ago
1
Level 1
Hi Xav,
last year I have made a typo plugin for this. My plugin was for Seblod 2.x and I had never reinstalled it on my new seblod 3.x.
So I don't know if it's still working.

My typo have options - allow 'Administrator' to view (included groups with rights to edit this content type in seblod rigths manager).

If your are interested...
BR
Jpeg

116 Posts
nycxav
10 years ago
0
Level 2
Hi,
Thanks for your reply.
I have managed to get my own typo to work in the meantime.
It loads the modules if the user is the owner of the content or is an administrator.
Only issue I have is the layout is not loaded but I can modify my css to fix this. .
Does your display the module "cleanly"?
Thanks.
Xav.
Get a Book for SEBLOD