You can work for upto 20 hours a week, and if you attempt to work more than this, it will violate the study permit criteria. This leads to not granting student permits for the future, or they may tell you to leave the country then and there.