Currently user with Developer role for a project can add time spent for an Issue/Subtask not asigned to him.
how to restrict this , so that only if he is the assigne then he could log againt it.
Change the permission scheme for the project.
There are lines in there related to logging work. Change them so that they only say "assignee"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.